]> https://gitweb.dealii.org/ - dealii.git/commitdiff
distributed_grids/large_vtu_01: fix test
authorMatthias Maier <tamiko@43-1.org>
Wed, 8 Jun 2022 21:47:07 +0000 (16:47 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 8 Jun 2022 21:47:54 +0000 (16:47 -0500)
Let's only write to deallog on rank 0, otherwise the output might get
truncated.

tests/distributed_grids/large_vtu_01.cc
tests/distributed_grids/large_vtu_01.with_p4est=true.with_zlib=on.mpirun=4.output

index 18b61315373b37dc4ec671c49f001e203d21187d..b0e25bf6195b3878026ac14f32d2df73378cb694 100644 (file)
@@ -69,9 +69,11 @@ run()
   unsigned int n_cycles_global = (run_big) ? 4 : 1;
   triangulation.refine_global(n_cycles_global);
 
-  deallog << "n_global_active_cells: " << triangulation.n_global_active_cells()
-          << " n_global_levels: " << triangulation.n_global_levels()
-          << std::endl;
+  if (dealii::Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
+    deallog << "n_global_active_cells: "
+            << triangulation.n_global_active_cells()
+            << " n_global_levels: " << triangulation.n_global_levels()
+            << std::endl;
 
   const unsigned int n_vectors = 1;
 
@@ -116,8 +118,9 @@ run()
           if (line[0] == '<')
             deallog << line << '\n';
         }
+
+      deallog << "OK" << std::endl;
     }
-  deallog << "OK" << std::endl;
 }
 
 
index 40c58b1ba0eb31fd28262838df123f25326ab746..68d6f439c212af47e2579f857b55f38efb0e78f1 100644 (file)
@@ -7,6 +7,8 @@ DEAL:0::<?xml version="1.0" ?>
 <Piece NumberOfPoints="216" NumberOfCells="64" >
 OK
 
-DEAL:1::n_global_active_cells: 8 n_global_levels: 2
-DEAL:1::OK
+
+
+
+
 

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.