x_max = 1.2;
y_max = 5.;

Point(1) = {0.0, 0.0, 0.0};
Point(2) = {x_max, 0.0, 0.0};
Point(3) = {x_max, y_max, 0.0 };
Point(4) = {0.0,  y_max, 0.0};

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};

Line Loop(1) = {1,2,3,4};
Plane Surface(1)={1};

// -- Calcul taille maille 
x_elm_size = 0.2;
y_elm_size = 1.5;

// -- Calcul nb elements sur chaque edge
nb_elem_x = x_max/x_elm_size; // = 1.2 / 0.2 = 6 Elements
nb_elem_y = y_max/y_elm_size;
// nb_elem_x = 6;
//
// --- Calculs nb noeuds
nb_nodes_x = nb_elem_x +1; // = 6 + 1 = 7 noeuds
nb_nodes_y = nb_elem_y +1;
// nb_nodes_x = 7;


Transfinite Line{1, -3} = nb_nodes_x;
Transfinite Line{2, 4} = nb_nodes_y ;
Transfinite Surface{1};
Recombine Surface{1};
//