Gmsh: Error reading the mesh

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.

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

1 Like