From 46d4827e1cef5f27482abff93cf9861c94bf51a4 Mon Sep 17 00:00:00 2001 From: AndiMD Date: Sun, 27 Sep 2020 18:47:54 +0200 Subject: [PATCH 1/3] Change kwarg default: renumber=true --- src/GmshDiscreteModels.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GmshDiscreteModels.jl b/src/GmshDiscreteModels.jl index f4b4150..88a3738 100644 --- a/src/GmshDiscreteModels.jl +++ b/src/GmshDiscreteModels.jl @@ -3,7 +3,7 @@ const D3=3 const POINT=15 const UNSET = 0 -function GmshDiscreteModel(mshfile; renumber=false) +function GmshDiscreteModel(mshfile; renumber=true) @check_if_loaded if !isfile(mshfile) error("Msh file not found: $mshfile") From 1368845a11875f28567f1bb03674df1937736638 Mon Sep 17 00:00:00 2001 From: AndiMD Date: Sun, 27 Sep 2020 18:52:38 +0200 Subject: [PATCH 2/3] Gmsh option Mesh.SaveAll=1 to keep all entities --- src/GmshDiscreteModels.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GmshDiscreteModels.jl b/src/GmshDiscreteModels.jl index 88a3738..e9411db 100644 --- a/src/GmshDiscreteModels.jl +++ b/src/GmshDiscreteModels.jl @@ -11,6 +11,7 @@ function GmshDiscreteModel(mshfile; renumber=true) gmsh.initialize() gmsh.option.setNumber("General.Terminal", 1) + gmsh.option.setNumber("Mesh.SaveAll", 1) gmsh.open(mshfile) renumber && gmsh.model.mesh.renumberNodes() From 63ecbeb51a2ae13a7e5c16f0c500bdc75d212e14 Mon Sep 17 00:00:00 2001 From: AndiMD Date: Sun, 27 Sep 2020 19:25:23 +0200 Subject: [PATCH 3/3] med format: Keep groups of vertices --- src/GmshDiscreteModels.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GmshDiscreteModels.jl b/src/GmshDiscreteModels.jl index e9411db..882e283 100644 --- a/src/GmshDiscreteModels.jl +++ b/src/GmshDiscreteModels.jl @@ -12,6 +12,7 @@ function GmshDiscreteModel(mshfile; renumber=true) gmsh.initialize() gmsh.option.setNumber("General.Terminal", 1) gmsh.option.setNumber("Mesh.SaveAll", 1) + gmsh.option.setNumber("Mesh.MedImportGroupsOfNodes", 1) gmsh.open(mshfile) renumber && gmsh.model.mesh.renumberNodes()