# Problem reading mesh when in MPI version

**URL:** <https://community.freefem.org/t/problem-reading-mesh-when-in-mpi-version/127>\
**Category:** General Discussion\
**Created:** [September 6, 2019, 4:24pm UTC](https://community.freefem.org/t/problem-reading-mesh-when-in-mpi-version/127 "2019-09-06T16:24:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin997](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robin997](https://community.freefem.org/u/robin997)\
**Post date:** [September 6, 2019, 4:24pm UTC](https://community.freefem.org/t/problem-reading-mesh-when-in-mpi-version/127/1 "2019-09-06T16:24:33Z")

</div>

How do I read a generated mesh in the MPI version? The documentation doesn’t talk about this…

I use the command below to read the mesh. Normally it works fine. However, in MPI version, I encounter this error message.

> mesh Th = readmesh(“ThCoarse.msh”);

> mshptg bug in number of points 0 \> 0 == max nb points  
> Error mesh generation in mshptg : err = 1 nb triangles = 0  
> current line = 237 mpirank 0 / 1  
> Assertion fail : (err==0 && nbt !=0)  
> line :1768, in file …/femlib/fem.cpp  
> Assertion fail : (err==0 && nbt !=0)  
> line :1768, in file …/femlib/fem.cpp  
> err code 6 , mpirank 0

[ThCoarse.msh.edp](https://community.freefem.org/uploads/short-url/2jTafY6Vz9R3VFeHIG3UsaWnKjm.edp) (3.2 MB) (i added .edp because .msh is not allowed…)
