-- FreeFem++ v4.6 (Thu Apr 2 15:47:38 CEST 2020 - git v4.6) Load: lg_fem lg_mesh lg_mesh3 eigenvalue 1 : // square_split.edp 2 : // 3 : // Discussion: 4 : // 5 : // This example reads a mesh created by mesh_write.edp. 6 : // 7 : // Location: 8 : // 9 : // http://people.sc.fsu.edu/~jburkardtfreefem++/square_split/square_split.edp 10 : // 11 : // Licensing: 12 : // 13 : // This code is distributed under the GNU LGPL license. 14 : // 15 : // Modified: 16 : // 17 : // 26 July 2015 18 : // 19 : // Author: 20 : // 21 : // John Burkardt 22 : // 23 : // Reference: 24 : // 25 : // Frederic Hecht, 26 : // Freefem++, 27 : // Third Edition, version 3.22 28 : // 29 : cout << "\n"; 30 : cout << "SQUARE_SPLIT\n"; 31 : cout << " FreeFem++ version.\n"; 32 : // 33 : // Retrieve mesh data from the MSH files 34 : // square_split_o.msh 35 : // and 36 : // square_split_g.msh 37 : // 38 : int n = 10; 39 : mesh Th = readmesh ( "square_split_o.msh" ); 40 : // 41 : // Plot the mesh. 42 : // 43 : plot ( Th, wait = 1, ps = "square_split.ps" ); 44 : // 45 : // Here are some things you can query about a mesh. 46 : // 47 : cout << "\n"; 48 : cout << " Some mesh data:\n"; 49 : cout << "\n"; 50 : cout << " Th.area = " << Th.area << "\n";; 51 : cout << " Th.nt = " << Th.nt << "\n"; 52 : cout << " Th.nv = " << Th.nv << "\n"; 53 : // 54 : // Terminate. 55 : // 56 : cout << "\n"; 57 : cout << "SQUARE_SPLIT\n"; 58 : cout << " Normal end of execution.\n"; 59 : 60 : sizestack + 1024 =1264 ( 240 ) SQUARE_SPLIT FreeFem++ version. -- mesh: Nb of Triangles = 22, Nb of Vertices 18 Some mesh data: Th.area = 4 Th.nt = 22 Th.nv = 18 SQUARE_SPLIT Normal end of execution. times: compile 0.00467s, execution 0.00073s, mpirank:0 CodeAlloc : nb ptr 3472, size :468352 mpirank: 0 Ok: Normal End