-- FreeFem++ v4.6 (Thu Apr 2 15:47:38 CEST 2020 - git v4.6) Load: lg_fem lg_mesh lg_mesh3 eigenvalue 1 : // Discussion: 2 : // 3 : // This example simply creates and saves a mesh. 4 : // 5 : // Location: 6 : // 7 : // http://people.sc.fsu.edu/~jburkardt/freefem_src/mesh_write/mesh_write.edp 8 : // 9 : // Licensing: 10 : // 11 : // This code is distributed under the GNU LGPL license. 12 : // 13 : // Modified: 14 : // 15 : // 19 June 2015 16 : // 17 : // Author: 18 : // 19 : // John Burkardt 20 : // 21 : // Reference: 22 : // 23 : // Frederic Hecht, 24 : // Freefem++, 25 : // Third Edition, version 3.22 26 : // 27 : cout << "\n"; 28 : cout << "mesh_write\n"; 29 : cout << " FreeFem++ version\n"; 30 : cout << " Define a mesh, and write it to a file.\n"; 31 : 32 : border C ( t = 0, 2 * pi ) { x = cos ( t ); y = sin ( t ); label = 1; } 33 : // 34 : // Define Th, the triangulation of the "left" side of the boundaries. 35 : // 36 : int n = 10; 37 : mesh Th = buildmesh ( C ( n ) ); 38 : // 39 : // Plot the mesh. 40 : // 41 : plot ( Th, ps = "mesh_write_mesh.ps" ); 42 : // 43 : // Save the mesh file. 44 : // 45 : savemesh ( Th, "mesh_write_mesh.msh" ); 46 : // 47 : // Terminate. 48 : // 49 : cout << "\n"; 50 : cout << "mesh_write:\n"; 51 : cout << " Normal end of execution.\n"; 52 : 53 : 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. times: compile 0.004015s, execution 0.000765s, mpirank:0 CodeAlloc : nb ptr 3468, size :468944 mpirank: 0 Ok: Normal End