Skip to content

Commit

Permalink
gmsh reader ignore 1-node points
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslg committed Sep 2, 2024
1 parent c4f62aa commit 9b41046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def read_gmsh(filename: string) -> Mesh:
faces.append([n0 - 1, n1 - 1, n2 - 1, n3 - 1])
elif elem_type == 1: # skip 2-node line elements
continue
elif elem_type == 15: # skip 1-node point elements
continue
else:
print("element_type " + str(elem_type) + " not handled")
exit(1)
Expand Down

0 comments on commit 9b41046

Please sign in to comment.