# Gmsh: Error reading the mesh

**URL:** https://community.freefem.org/t/gmsh-error-reading-the-mesh/317
**Category:** General Discussion
**Created:** [April 3, 2020, 3:18pm UTC](https://community.freefem.org/t/gmsh-error-reading-the-mesh/317 "2020-04-03T15:18:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Julien](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Julien](https://community.freefem.org/u/Julien)
#### Post date: [April 3, 2020, 3:18pm UTC](https://community.freefem.org/t/gmsh-error-reading-the-mesh/317/1 "2020-04-03T15:18:45Z")

</div>

Hi everyone !

I have an error reading a simple Gmsh mesh in FreeFem++

#FreeFem ++ ouput:

Element of type 3 is not considered in Freefem++

#FreeFem++ script:

load “gmsh”  
mesh Th = gmshload(“square.msh”);

#Gmsh .geo script:  
//+  
Point(1) = {0, -0, 0, 1.0};  
//+  
Point(2) = {1, -0, 0, 1.0};  
//+  
Point(3) = {1, 1, 0, 1.0};  
//+  
Point(4) = {-0, 1, 0, 1.0};  
//+  
Line(1) = {1, 2};  
//+  
Line(2) = {2, 3};  
//+  
Line(3) = {3, 4};  
//+  
Line(4) = {4, 1};  
//+  
Curve Loop(1) = {3, 4, 1, 2};  
//+  
Plane Surface(1) = {1};

A similar problem has already been solved in this forum, but it concerned the command Recombine, that I don’t have in my .geo script.

Thank you in advance for your help.

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [April 3, 2020, 4:34pm UTC](https://community.freefem.org/t/gmsh-error-reading-the-mesh/317/2 "2020-04-03T16:34:03Z")

</div>

No way, freefem just do triangle or tet , no quad  
and elements of type 3 are quad in gmsh c.f.  
2D entity (surface) 1, element type 3 (4-node quad), 2 elements  
1 1 2 3 4 quad tag #1, nodes 1 2 3 4
