Open reox opened 2 years ago
Indeed, this is an issue that I faced as well (Ubuntu 20.04, Paraview 5.11.0, and meshio 5.3.4) . However, the proposed solution
for cellblock in cells: meshio_type = cellblock.type data = cellblock.data
resulted in:
ValueError: invalid literal for int() with base 10: 'quad'
what worked for me is the following:
for cellblock in cells: meshio_type = meshio_to_vtk_type[cellblock.type] data = cellblock.data ...
I hope this helps!
Issue is still present in the plugin
I noticed I could not load meshes with the paraview plugin when using 5.3.4 on python 3.8:
This line was probably not updated to the (new?) CellBlock class: https://github.com/nschloe/meshio/blob/0138cc8692b806b44b32d344f7961e8370121ff7/tools/paraview-meshio-plugin.py#L85
I think changing the lines to:
should do the trick (at least for me the mesh loads again), but I don't know if anything else has to be changed?