-- FreeFem++ v4.14 (mer. 06 mars 2024 16:59:04 CET - git v4.14-1-g2b2052ae) file : mesh_write.edp Load: lg_fem lg_mesh lg_mesh3 eigenvalue 1 : // mesh_write.edp 2 : // 3 : // Discussion: 4 : // 5 : // This example simply creates and saves a mesh. 6 : // 7 : // Licensing: 8 : // 9 : // This code is distributed under the MIT license. 10 : // 11 : // Modified: 12 : // 13 : // 19 June 2015 14 : // 15 : // Author: 16 : // 17 : // John Burkardt 18 : // 19 : // Reference: 20 : // 21 : // Frederic Hecht, 22 : // Freefem++, 23 : // Third Edition, version 3.22 24 : // 25 : cout << "\n"; 26 : cout << "mesh_write():\n"; 27 : cout << " FreeFem++ version\n"; 28 : cout << " Define a mesh, and write it to a file.\n"; 29 : 30 : border C ( t = 0, 2 * pi ) { x = cos ( t ); y = sin ( t ); label = 1; } 31 : // 32 : // Define Th, the triangulation of the "left" side of the boundaries. 33 : // 34 : int n = 10; 35 : mesh Th = buildmesh ( C ( n ) ); 36 : // 37 : // Plot the mesh. 38 : // 39 : plot ( Th, ps = "mesh_write_mesh.ps" ); 40 : // 41 : // Save the mesh file. 42 : // 43 : savemesh ( Th, "mesh_write_mesh.msh" ); 44 : // 45 : // Terminate. 46 : // 47 : cout << "\n"; 48 : cout << "mesh_write():\n"; 49 : cout << " Normal end of execution.\n"; 50 : 51 : exit ( 0 ); 52 : sizestack + 1024 =1280 ( 256 ) mesh_write(): FreeFem++ version Define a mesh, and write it to a file. -- mesh: Nb of Triangles = 18, Nb of Vertices 15 number of required edges : 0 mesh_write(): Normal end of execution. current line = 51 exit(0) err code 0 , mpirank 0 CodeAlloc : nb ptr 3840, size :516888 mpirank: 0 Ok: Normal End