Skip to content

Commit

Permalink
Fix plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Jul 16, 2024
1 parent 1199ea7 commit 0e9e9f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/paraview-meshio-plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def RequestData(self, request, inInfoVec, outInfoVec):
cell_types = np.array([], dtype=np.ubyte)
cell_offsets = np.array([], dtype=int)
cell_conn = np.array([], dtype=int)
for meshio_type, data in cells:
for cellblock in cells:
meshio_type = cellblock.type
data = cellblock.data
vtk_type = meshio_to_vtk_type[meshio_type]
ncells, npoints = data.shape
cell_types = np.hstack(
Expand Down

0 comments on commit 0e9e9f4

Please sign in to comment.