getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] [getfem-commits] branch cleanup-mesh-import updated: In


From: Konstantinos Poulios
Subject: [Getfem-commits] [getfem-commits] branch cleanup-mesh-import updated: Inline helper functions
Date: Mon, 07 Aug 2023 07:01:23 -0400

This is an automated email from the git hooks/post-receive script.

logari81 pushed a commit to branch cleanup-mesh-import
in repository getfem.

The following commit(s) were added to refs/heads/cleanup-mesh-import by this 
push:
     new c6e288f7 Inline helper functions
c6e288f7 is described below

commit c6e288f738b68d5dbd4aceca5bd116220a6e8e28
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Mon Aug 7 13:01:11 2023 +0200

    Inline helper functions
---
 src/getfem/getfem_import.h | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/getfem/getfem_import.h b/src/getfem/getfem_import.h
index ac24051f..dad7792b 100644
--- a/src/getfem/getfem_import.h
+++ b/src/getfem/getfem_import.h
@@ -154,11 +154,12 @@ namespace getfem {
                         bool remove_last_dimension = true,
                         std::map<size_type, std::set<size_type>> *nodal_map = 
nullptr,
                         bool merge_overlapping_nodes = false);
-  void import_mesh_gmsh(const std::string& filename, mesh& m,
-                        std::map<std::string, size_type> &region_map,
-                        bool remove_last_dimension = true,
-                        std::map<size_type, std::set<size_type>> *nodal_map = 
nullptr,
-                        bool merge_overlapping_nodes = false) {
+  inline void
+  import_mesh_gmsh(const std::string& filename, mesh& m,
+                   std::map<std::string, size_type> &region_map,
+                   bool remove_last_dimension = true,
+                   std::map<size_type, std::set<size_type>> *nodal_map = 
nullptr,
+                   bool merge_overlapping_nodes = false) {
     import_mesh_gmsh(filename, m, false, nullptr, &region_map,
                      remove_last_dimension, nodal_map, 
merge_overlapping_nodes);
   }
@@ -169,11 +170,12 @@ namespace getfem {
                         bool remove_last_dimension = true,
                         std::map<size_type, std::set<size_type>> *nodal_map = 
nullptr,
                         bool merge_overlapping_nodes = false);
-  void import_mesh_gmsh(std::istream& f, mesh& m,
-                        std::map<std::string, size_type> &region_map,
-                        bool remove_last_dimension = true,
-                        std::map<size_type, std::set<size_type>> *nodal_map = 
nullptr,
-                        bool merge_overlapping_nodes = false) {
+  inline void
+  import_mesh_gmsh(std::istream& f, mesh& m,
+                   std::map<std::string, size_type> &region_map,
+                   bool remove_last_dimension = true,
+                   std::map<size_type, std::set<size_type>> *nodal_map = 
nullptr,
+                   bool merge_overlapping_nodes = false) {
     import_mesh_gmsh(f, m, false, nullptr, &region_map,
                      remove_last_dimension, nodal_map, 
merge_overlapping_nodes);
   }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]