Commit b60343a1 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

accomodate not sequentially numbered nodes

parent f19937d4
Pipeline #9189 passed with stages
in 4 minutes and 8 seconds
......@@ -80,8 +80,9 @@ def _load_msh(mesh_file_name, lib, dim) :
gmsh.model.add("tmp")
gmsh.open(mesh_file_name)
gmsh.model.mesh.renumberNodes()
_, x, _ = gmsh.model.mesh.getNodes()
ntags, x, _ = gmsh.model.mesh.getNodes()
x = x.reshape([-1,3])
x[ntags-1] = x
_, el = gmsh.model.mesh.getElementsByType(etype)
el = (el-1).reshape([-1,dim+1])
bnd = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment