# Need some help in converting gmsh file into the form which can be used in fenics code

**URL:** <https://fenicsproject.discourse.group/t/need-some-help-in-converting-gmsh-file-into-the-form-which-can-be-used-in-fenics-code/10839>\
**Category:** mesh\
**Created:** [April 3, 2023, 6:51am UTC](https://fenicsproject.discourse.group/t/need-some-help-in-converting-gmsh-file-into-the-form-which-can-be-used-in-fenics-code/10839 "2023-04-03T06:51:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 3, 2023, 7:00am UTC](https://fenicsproject.discourse.group/t/need-some-help-in-converting-gmsh-file-into-the-form-which-can-be-used-in-fenics-code/10839/2 "2023-04-03T07:00:07Z")

</div>

You cannot read msh files directly into legacy dolfin.

See: [What is wrong with my mesh? - #13 by dokken](https://fenicsproject.discourse.group/t/what-is-wrong-with-my-mesh/7504/13)

You could also move to DOLFINx, which can read msh directly:

> <https://github.com/FEniCS/dolfinx/blob/main/python/dolfinx/io/gmshio.py#L282>

---

_[View the full topic](https://fenicsproject.discourse.group/t/need-some-help-in-converting-gmsh-file-into-the-form-which-can-be-used-in-fenics-code/10839)._
