Build a torus with gmsh - Error when loading mesh into DOLFINx

You need to add physical groups to your mesh, as the function read_from_msh states

Reads a mesh from a msh-file and returns the distributed DOLFINx
mesh and cell and facet markers associated with physical groups
in the msh file.

1 Like