Skip to content

Commit e2fef18

Browse files
committed
bug fix
1 parent 8109b98 commit e2fef18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

additional_file_formats/mzd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def readMZD_to_meshio(filepath):
8181
breaks = np.where(out_polyVIndicesNum[:-1] != out_polyVIndicesNum[1:])[0] + 1
8282
breaks = np.append(breaks, len(out_polyVIndicesNum))
8383
for b in breaks:
84-
poly_nodes_num = out_polyVIndicesNum[start_polyVIndices] # 3(triangle) or 4 (quad)
84+
poly_nodes_num = out_polyVIndicesNum[start_polyVIndicesNum] # 3(triangle) or 4 (quad)
8585
end_polyVIndices = start_polyVIndices + poly_nodes_num * (b - start_polyVIndicesNum)
8686
cells[num_nodes_to_name[poly_nodes_num]] = out_polyVIndices[start_polyVIndices:end_polyVIndices].reshape(
8787
((b - start_polyVIndicesNum), poly_nodes_num))
@@ -231,7 +231,7 @@ def readMZD_to_meshio_with_split_norm(filepath):
231231
breaks = np.where(out_polyVIndicesNum[:-1] != out_polyVIndicesNum[1:])[0] + 1
232232
breaks = np.append(breaks, len(out_polyVIndicesNum))
233233
for b in breaks:
234-
poly_nodes_num = out_polyVIndicesNum[start_polyVIndices] # 3(triangle) or 4 (quad)
234+
poly_nodes_num = out_polyVIndicesNum[start_polyVIndicesNum] # 3(triangle) or 4 (quad)
235235
end_polyVIndices = start_polyVIndices + poly_nodes_num * (b - start_polyVIndicesNum)
236236
cells[num_nodes_to_name[poly_nodes_num]] = out_polyVIndices[start_polyVIndices:end_polyVIndices].reshape(
237237
((b - start_polyVIndicesNum), poly_nodes_num))

0 commit comments

Comments
 (0)