# Help Needed: Correctly Imposing Dirichlet Boundary Conditions with GMSH and Meshio in FEniCSx

**URL:** <https://fenicsproject.discourse.group/t/help-needed-correctly-imposing-dirichlet-boundary-conditions-with-gmsh-and-meshio-in-fenicsx/15430>\
**Category:** General\
**Created:** [August 2, 2024, 6:51pm UTC](https://fenicsproject.discourse.group/t/help-needed-correctly-imposing-dirichlet-boundary-conditions-with-gmsh-and-meshio-in-fenicsx/15430 "2024-08-02T18:51:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![francesco-ballarin](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@francesco-ballarin](https://fenicsproject.discourse.group/u/francesco-ballarin)\
**Post date:** [August 3, 2024, 7:26am UTC](https://fenicsproject.discourse.group/t/help-needed-correctly-imposing-dirichlet-boundary-conditions-with-gmsh-and-meshio-in-fenicsx/15430/2 "2024-08-03T07:26:11Z")

</div>

Please read [Read before posting: How do I get my question answered?](https://fenicsproject.discourse.group/t/read-before-posting-how-do-i-get-my-question-answered/21)

In particular, your code is not properly formatted (not included in a “```” block), and not reproducible.

The general suggestion is not to use meshio, and rely on `dolfinx.io.gmshio.read_from_msh`.

---

_[View the full topic](https://fenicsproject.discourse.group/t/help-needed-correctly-imposing-dirichlet-boundary-conditions-with-gmsh-and-meshio-in-fenicsx/15430)._
