Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with cell blocks in plugin #1483

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix plugin
  • Loading branch information
mwestphal committed Jul 16, 2024
commit 3ce113f635b35f2cffd4d273c68f7c510929964d
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