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

fix

parent e12a90a6
Pipeline #9888 failed with stages
in 2 minutes and 10 seconds
......@@ -207,9 +207,9 @@ def mesh(domain: _geometry.Domain, filename: str,
rm = []
for e in gmsh.model.getEntities(1) :
enodes,_,_ = gmsh.model.mesh.getNodes(*e)
if not (enodes[0] in keepnodes) :
if (len(enodes) == 0) or (not (enodes[0] in keepnodes)) :
rm.append(e)
if rm :
if len(rm) != 0 :
gmsh.model.removeEntities(rm,True)
_tools.log("Write \"{}\" (msh version {})".format(filename, version))
gmsh.option.setNumber("Mesh.MshFileVersion", version)
......
Supports Markdown
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