Why to update from dolfin-convert to meshio?

Hi all
I wonder why I should update my meshing conversion by means of meshio instead of dolfin-convert.
To the extent that I import physical groups from GMSH, dolfin-converts works perfectly fine for me. Why update to meshio code?
Any suggestions?
I would appreciate your comments.
Regards

1 Like

This is because dolfin-convert is no longer maintained. This means that if something stops working, it will not be fixed (see for instance this error Dolfin-convert: ValueError when converting .msh to .xml).

It dolfin-convert works for you, I guess you are using an older version of gmsh. Current version is 4.6.0.

The second reason is that it is preferrable to save your mesh in the XDMF format, and not in the XML format (especially for parallel computing).

2 Likes

Thank you, dokken.
Well, I am using gmsh 4.5 and produce a 2.0 mesh format. I have seen topics about this and I have been able to manage meshio but I’m a little scared about managing PHYSICAL GROUPS previously fixed in gmsh in so far as some problems came to me.
I will take a look…

There are plenty if examples of how to do physical groups in Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio
and
Converter from GMSH to XDMF (with physical groups)