]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add missing namespace 9016/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 7 Nov 2019 13:20:42 +0000 (13:20 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 7 Nov 2019 13:20:42 +0000 (13:20 +0000)
doc/news/changes/minor/20191107HassanMohammedTurckinBruno [new file with mode: 0644]
examples/step-54/step-54.cc

diff --git a/doc/news/changes/minor/20191107HassanMohammedTurckinBruno b/doc/news/changes/minor/20191107HassanMohammedTurckinBruno
new file mode 100644 (file)
index 0000000..e6f4842
--- /dev/null
@@ -0,0 +1,4 @@
+Fixed: In Step-54, the std namespace was missing for some calls to cout and
+endl.
+<br>
+(Mohammed Hassan, Bruno Turcksin, 2019/11/07)
index 36074c8d7930d930fed8e7fa737eb3f96135a151..db90d83c85e89a9a083f0ebbc9bf37d06488ec47 100644 (file)
@@ -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)
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.