From 36743ac6be62db79d6361007862b541bfe49ec66 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Thu, 7 Nov 2019 13:20:42 +0000 Subject: [PATCH] Add missing namespace --- .../minor/20191107HassanMohammedTurckinBruno | 4 ++ examples/step-54/step-54.cc | 60 ++++++++++--------- 2 files changed, 35 insertions(+), 29 deletions(-) create mode 100644 doc/news/changes/minor/20191107HassanMohammedTurckinBruno 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) { -- 2.39.5