nschloe/meshio

Gmsh does permit arbitrary size of fields

gtheler opened this issue · 0 comments

If the size of a field is not either 1,3 or 9 the Gmsh writer will complain in https://github.com/nschloe/meshio/blob/main/src/meshio/gmsh/common.py#L254:

raise WriteError("Gmsh only permits 1, 3, or 9 components per data field.")

This is not true. It is just that the Gmsh GUI will not be able to plot the field, but data can be still be read and processed using the Gmsh API for example.

Can this check be removed or turned into a warning?