Oh, sorry. I have rerun it and I got the following:
[New Thread 0x7ffff35166c0 (LWP 9171)]
[New Thread 0x7ffff2d156c0 (LWP 9172)]
[New Thread 0x7fffea5146c0 (LWP 9173)]
[New Thread 0x7fffe1d136c0 (LWP 9174)]
[New Thread 0x7fffd15126c0 (LWP 9175)]
[New Thread 0x7fffc8d116c0 (LWP 9176)]
[New Thread 0x7fffc05106c0 (LWP 9177)]
[New Thread 0x7fffbfd0f6c0 (LWP 9178)]
[New Thread 0x7fffaf50e6c0 (LWP 9179)]
[New Thread 0x7fffaed0d6c0 (LWP 9180)]
[New Thread 0x7fffa650c6c0 (LWP 9181)]
[New Thread 0x7fff9dd0b6c0 (LWP 9182)]
[New Thread 0x7fff8d50a6c0 (LWP 9183)]
[New Thread 0x7fff8cd096c0 (LWP 9184)]
[New Thread 0x7fff7c5086c0 (LWP 9185)]
[New Thread 0x7fff73d076c0 (LWP 9186)]
[New Thread 0x7fff6b5066c0 (LWP 9187)]
[New Thread 0x7fff62d056c0 (LWP 9188)]
[New Thread 0x7fff5a5046c0 (LWP 9189)]
-- FreeFem++ v4.14 (Thu Dec 28 10:23:40 AM CET 2023 - git no git)
file : /home/sgau/lib/FREEFEM/examples/3dSurf/buildMeshSfromMesh3.edp
Load: lg_fem lg_mesh lg_mesh3 eigenvalue
1 : load "msh3"
2 : //load "medit"
3 :
4 : //load "gmsh"
5 : //load "iovtk"
6 :
7 : int n= 10;
8 : int nvb = (n+1)^3 - (n-1)^3;// Nb boundary vertices
9 : int ntb = n*n*12; // Nb of Boundary triangle
10 : mesh3 Th=cube(n,n,n);
11 : Th = buildBdMesh(Th); // build the surface mesh
12 :
13 :
14 : int[int] ref2=[1,0,2,0];
15 : mesh3 Thm=change(Th,label=ref2);
16 :
17 :
18 : meshS Th1 = Th.Gamma;
19 :
20 : assert(Th1.nv==602);
21 : assert(Th1.nt==1200);
22 : assert(Th1.nbe==120);
23 :
24 : plot(Th1);
25 : savemesh(Th1, "Th1.mesh");
26 :
27 : meshS Th2 = readmeshS("Th1.mesh");
28 :
29 : assert(Th1.nv==Th2.nv);
30 : assert(Th1.nt==Th2.nt);
31 : assert(Th1.nbe==Th2.nbe);
32 : sizestack + 1024 =1896 ( 872 )
-- Cube nv=1331 nt=6000 nbe=1200 kind= 6
Build meshS from mesh3....
Plot:: Sorry no ps version for this type of plot 50
read meshS ok 0surface Mesh, num Triangles:= 1200, num Vertice:= 602 num boundary Edges:= 120
-- MeshS : Th1.mesh, space dimension 3, num Triangle elts 1200, num Vertice 602 num Bordary elts 120
times: compile 0.769465s, execution 0.30594s, mpirank:0
CodeAlloc : nb ptr 3945, size :527640 mpirank: 0
Ok: Normal End
[Thread 0x7fff5a5046c0 (LWP 9189) exited]
[Thread 0x7fff62d056c0 (LWP 9188) exited]
[Thread 0x7fff6b5066c0 (LWP 9187) exited]
[Thread 0x7fff73d076c0 (LWP 9186) exited]
[Thread 0x7fff7c5086c0 (LWP 9185) exited]
[Thread 0x7fff8cd096c0 (LWP 9184) exited]
[Thread 0x7fff8d50a6c0 (LWP 9183) exited]
[Thread 0x7fff9dd0b6c0 (LWP 9182) exited]
[Thread 0x7fffa650c6c0 (LWP 9181) exited]
[Thread 0x7fffaed0d6c0 (LWP 9180) exited]
[Thread 0x7fffaf50e6c0 (LWP 9179) exited]
[Thread 0x7fffbfd0f6c0 (LWP 9178) exited]
[Thread 0x7fffc05106c0 (LWP 9177) exited]
[Thread 0x7fffc8d116c0 (LWP 9176) exited]
[Thread 0x7fffd15126c0 (LWP 9175) exited]
[Thread 0x7fffe1d136c0 (LWP 9174) exited]
[Thread 0x7fffea5146c0 (LWP 9173) exited]
[Thread 0x7ffff2d156c0 (LWP 9172) exited]
[Thread 0x7ffff35166c0 (LWP 9171) exited]
[Inferior 1 (process 9167) exited normally]