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

patchkernel: fix data types of VTK geometry fields #54

Merged
merged 3 commits into from
Apr 6, 2020

Conversation

andrea-iob
Copy link
Member

Data type of offset field should match the data type of the connectivity.

This is the error raised by Paraview 5.8 while opening a VolOctree patch:

vtkXMLUnstructuredGridReader (0x5594e13b0b20): Cannot read cell data from Cells. Offsets and connectivity arrays must be the same type.

@haysam The change to the IO module is not strictly needed to fix the issue because PatchKernel is not using VTK homogeneous grids, but I think we shouldn't set the type of the offset field to UInt64 unconditionally (it may not match the data type of the connectivity field).

@andrea-iob
Copy link
Member Author

The data type used when flushing vertex index was wrong, I fixed it as well.

@edoardolombardi
Copy link
Member

For me it's ok, but I leave @haysam approving as author of the module.

@andrea-iob
Copy link
Member Author

@haysam Can I merge this?

@andrea-iob andrea-iob merged commit da482ee into master Apr 6, 2020
@andrea-iob andrea-iob deleted the patchkernel.fix.vtk.types branch April 6, 2020 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants