From 08e3b26cf445928f9f2b74f0d698b6f7eaa7c9ca Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 16 May 2015 06:10:02 -0500 Subject: [PATCH] Change mesh_info() to print_mesh_info(). Our function names almost always have a verb in it that indicates what the function does. This one did not. Change it. --- examples/step-49/step-49.cc | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/examples/step-49/step-49.cc b/examples/step-49/step-49.cc index e4bedf5d07..cb38466f55 100644 --- a/examples/step-49/step-49.cc +++ b/examples/step-49/step-49.cc @@ -57,9 +57,9 @@ using namespace dealii; // // Finally, the function outputs the mesh in encapsulated postscript (EPS) // format that can easily be visualized in the same way as was done in step-1. -template -void mesh_info(const Triangulation &tria, - const std::string &filename) +template +void print_mesh_info(const Triangulation &tria, + const std::string &filename) { std::cout << "Mesh info:" << std::endl << " dimension: " << dim << std::endl @@ -121,8 +121,7 @@ void grid_1 () std::ifstream f("untitled.msh"); gridin.read_msh(f); - mesh_info(triangulation, "grid-1.eps"); - + print_mesh_info(triangulation, "grid-1.eps"); } @@ -147,7 +146,7 @@ void grid_2 () Triangulation<2> triangulation; GridGenerator::merge_triangulations (tria1, tria2, triangulation); - mesh_info(triangulation, "grid-2.eps"); + print_mesh_info(triangulation, "grid-2.eps"); } @@ -212,7 +211,7 @@ void grid_3 () // no longer in use by the triangulation when it is destroyed (the boundary // object is destroyed first in this function since it was declared after // the triangulation). - mesh_info (triangulation, "grid-3.eps"); + print_mesh_info (triangulation, "grid-3.eps"); triangulation.set_manifold (1); } @@ -242,8 +241,7 @@ void grid_4() GridGenerator::hyper_cube_with_cylindrical_hole (triangulation, 0.25, 1.0); GridGenerator::extrude_triangulation (triangulation, 3, 2.0, out); - mesh_info(out, "grid-4.eps"); - + print_mesh_info(out, "grid-4.eps"); } @@ -278,7 +276,7 @@ void grid_5() Point<2>(10.0,1.0)); GridTools::transform(&grid_5_transform, tria); - mesh_info(tria, "grid-5.eps"); + print_mesh_info(tria, "grid-5.eps"); } @@ -318,7 +316,7 @@ void grid_6() Point<2>(1.0,1.0)); GridTools::transform(Grid6Func(), tria); - mesh_info(tria, "grid-6.eps"); + print_mesh_info(tria, "grid-6.eps"); } @@ -340,7 +338,7 @@ void grid_7() Point<2>(1.0,1.0)); GridTools::distort_random (0.3, tria, true); - mesh_info(tria, "grid-7.eps"); + print_mesh_info(tria, "grid-7.eps"); } -- 2.39.5