Skip to content

Commit

Permalink
Update format_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzhongshi authored Dec 15, 2023
1 parent 3b69b54 commit 5cd9f2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/format_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def convert_cutet(file1, file2):
17, 18, 19])
else:
assert False, "only hard-coded P3 or P4 for now."
num = p4T.shape[1]
tag = f'tetra{num}'
meshio.gmsh.write(file2,
meshio.Mesh(points=lagr, cells=[('tetra35', p4T[:, reorder])]))
meshio.Mesh(points=lagr, cells=[(tag, p4T[:, reorder])]))

def codec_to_points(codec):

Expand Down

0 comments on commit 5cd9f2d

Please sign in to comment.