Skip to content

Commit

Permalink
Merge pull request #27 from AndiMD/master
Browse files Browse the repository at this point in the history
Fix mesh import issue #3
  • Loading branch information
fverdugo authored Sep 30, 2020
2 parents cc43be0 + 63ecbeb commit 4f89bb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GmshDiscreteModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ 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")
end

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()
Expand Down

0 comments on commit 4f89bb5

Please sign in to comment.