# Something wrong with my mesh

**URL:** <https://fenicsproject.discourse.group/t/something-wrong-with-my-mesh/17995>\
**Category:** dolfinx\
**Tags:** mesh\
**Created:** [July 20, 2025, 2:10pm UTC](https://fenicsproject.discourse.group/t/something-wrong-with-my-mesh/17995 "2025-07-20T14:10:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [July 21, 2025, 12:45pm UTC](https://fenicsproject.discourse.group/t/something-wrong-with-my-mesh/17995/4 "2025-07-21T12:45:35Z")

</div>

It is quite likely that you have tagged the wrong surfaces.

Please make sure that you only include the code of generating the mesh + reading it in, and ensure that the failure lies in the line:

> [@raboynics](#):
>
> ` self.mesh, self.cell_markers, self.facet_markers = gmshio.read_from_msh(mesh_file, MPI.COMM_WORLD, gdim=2)`

and not any other line of your code.  
See for instance: [Adding 1d physical groups to gmsh model causes errors when convert it to dolfinx mesh - #2 by dokken](https://fenicsproject.discourse.group/t/adding-1d-physical-groups-to-gmsh-model-causes-errors-when-convert-it-to-dolfinx-mesh/17618/2)

---

_[View the full topic](https://fenicsproject.discourse.group/t/something-wrong-with-my-mesh/17995)._
