How can I resolve a matrix error when converting a 3D GMSH mesh to a 2D mesh and exporting it from .msh to .xdmf format?

Suggestion 1: read Read before posting: How do I get my question answered?
Suggestion 2: never post your code as image. Imagine I was reading your post on my cellphone: I would need three pairs of glasses given how small the font is
Suggestion 3: I wouldn’t use meshio anymore. dolfinx has native capabilities to read in a gmsh mesh.
Suggestion 4: learn how to properly format your code with “```”, which would make the code (and also the error) much easier to read.

1 Like