From: Bruno Turcksin Date: Thu, 7 Nov 2019 13:20:42 +0000 (+0000) Subject: Add missing namespace X-Git-Tag: v9.2.0-rc1~897^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9016%2Fhead;p=dealii.git Add missing namespace --- diff --git a/doc/news/changes/minor/20191107HassanMohammedTurckinBruno b/doc/news/changes/minor/20191107HassanMohammedTurckinBruno new file mode 100644 index 0000000000..e6f4842706 --- /dev/null +++ b/doc/news/changes/minor/20191107HassanMohammedTurckinBruno @@ -0,0 +1,4 @@ +Fixed: In Step-54, the std namespace was missing for some calls to cout and +endl. +
+(Mohammed Hassan, Bruno Turcksin, 2019/11/07) diff --git a/examples/step-54/step-54.cc b/examples/step-54/step-54.cc index 36074c8d79..db90d83c85 100644 --- a/examples/step-54/step-54.cc +++ b/examples/step-54/step-54.cc @@ -392,27 +392,28 @@ int main() const std::string in_mesh_filename = "input/initial_mesh_3d.vtk"; const std::string cad_file_name = "input/DTMB-5415_bulbous_bow.iges"; - cout << "----------------------------------------------------------" - << endl; - cout << "Testing projection in direction normal to CAD surface" << endl; - cout << "----------------------------------------------------------" - << endl; + std::cout << "----------------------------------------------------------" + << std::endl; + std::cout << "Testing projection in direction normal to CAD surface" + << std::endl; + std::cout << "----------------------------------------------------------" + << std::endl; std::string out_mesh_filename = ("3d_mesh_normal_projection"); TriangulationOnCAD tria_on_cad_norm(in_mesh_filename, cad_file_name, out_mesh_filename, TriangulationOnCAD::NormalProjection); tria_on_cad_norm.run(); - cout << "----------------------------------------------------------" - << endl; - cout << endl; - cout << endl; - - cout << "----------------------------------------------------------" - << endl; - cout << "Testing projection in y-axis direction" << endl; - cout << "----------------------------------------------------------" - << endl; + std::cout << "----------------------------------------------------------" + << std::endl; + std::cout << std::endl; + std::cout << std::endl; + + std::cout << "----------------------------------------------------------" + << std::endl; + std::cout << "Testing projection in y-axis direction" << std::endl; + std::cout << "----------------------------------------------------------" + << std::endl; out_mesh_filename = ("3d_mesh_directional_projection"); TriangulationOnCAD tria_on_cad_dir( in_mesh_filename, @@ -420,16 +421,17 @@ int main() out_mesh_filename, TriangulationOnCAD::DirectionalProjection); tria_on_cad_dir.run(); - cout << "----------------------------------------------------------" - << endl; - cout << endl; - cout << endl; - - cout << "----------------------------------------------------------" - << endl; - cout << "Testing projection in direction normal to mesh elements" << endl; - cout << "----------------------------------------------------------" - << endl; + std::cout << "----------------------------------------------------------" + << std::endl; + std::cout << std::endl; + std::cout << std::endl; + + std::cout << "----------------------------------------------------------" + << std::endl; + std::cout << "Testing projection in direction normal to mesh elements" + << std::endl; + std::cout << "----------------------------------------------------------" + << std::endl; out_mesh_filename = ("3d_mesh_normal_to_mesh_projection"); TriangulationOnCAD tria_on_cad_norm_to_mesh( in_mesh_filename, @@ -437,10 +439,10 @@ int main() out_mesh_filename, TriangulationOnCAD::NormalToMeshProjection); tria_on_cad_norm_to_mesh.run(); - cout << "----------------------------------------------------------" - << endl; - cout << endl; - cout << endl; + std::cout << "----------------------------------------------------------" + << std::endl; + std::cout << std::endl; + std::cout << std::endl; } catch (std::exception &exc) {