-- 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 : // The "CMM=string" argument on the plot command seems to print a comment string 4 : // as part of the plot. 5 : // 6 : // Location: 7 : // 8 : // http://people.sc.fsu.edu/~jburkardt/freefem_src/plot_test/plot_test.edp 9 : // 10 : // Licensing: 11 : // 12 : // This code is distributed under the GNU LGPL license. 13 : // 14 : // Modified: 15 : // 16 : // 21 June 2015 17 : // 18 : cout << "\n"; 19 : cout << "plot_test\n"; 20 : cout << " FreeFem++ version\n"; 21 : cout << " Test features of the plot() function\n"; 22 : // 23 : // Define Gamma1 and Gamma2, the boundaries. 24 : // A and B are the lengths of the semimajor and semiminor axes: 25 : // THETA specifies the angle at which we switch from GAMMA1 to GAMMA2. 26 : // 27 : real a = 2.0; 28 : real b = 1.0; 29 : real theta = 4.0 * pi / 3.0; 30 : border Gamma1 ( t = 0, theta ) { x = a * cos(t); y = b*sin(t); } 31 : border Gamma2 ( t = theta, 2*pi ) { x = a * cos(t); y = b*sin(t); } 32 : // 33 : // Define Th, the triangulation of the "left" side of the boundaries. 34 : // 35 : mesh Th = buildmesh ( Gamma1(100) + Gamma2(50) ); 36 : // 37 : // Plot the mesh. 38 : // 39 : plot ( Th, wait = true, ps = "plot_test_cmm_no.ps" ); 40 : 41 : plot ( Th, wait = true, cmm = "This is a plot of the mesh!", ps = "plot_test_cmm_yes.ps" ); 42 : // 43 : // Terminate. 44 : // 45 : cout << "\n"; 46 : cout << "plot_test:\n"; 47 : cout << " Normal end of execution.\n"; 48 : sizestack + 1024 =1312 ( 288 ) plot_test FreeFem++ version Test features of the plot() function -- mesh: Nb of Triangles = 2568, Nb of Vertices 1360 plot_test: Normal end of execution. times: compile 0.004162s, execution 0.019094s, mpirank:0 CodeAlloc : nb ptr 3508, size :470848 mpirank: 0 Ok: Normal End