// Discussion: // // Read the battery_o.msh and battery_g.msh files created by BAMG, // and save a standard FreeFem++ mesh as battery.msh. // // Location: // // http://people.sc.fsu.edu/~jburkardt/examples/mitchell_freefem++/battery_convert.edp // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 30 December 2014 // // Author: // // John Burkardt // // Reference: // // Frederic Hecht, // Freefem++, // Third Edition, version 3.22 // // William Mitchell, // A collection of 2D elliptic problems for testing adaptive // grid refinement algorithms, // Applied Mathematics and Computation, // Volume 220, 1 September 2013, pages 350-364. // // // Define Th, the triangulation. // mesh Th = readmesh ( "battery_o.msh" ); // // Plot the mesh. // plot ( Th, wait = 1, ps = "battery_o.eps" ); // // Save the mesh file. // savemesh ( Th, "battery.msh" );