From: Matthias Maier Date: Wed, 8 Jun 2022 21:47:07 +0000 (-0500) Subject: distributed_grids/large_vtu_01: fix test X-Git-Tag: v9.4.0-rc1~48^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d477dee419ff7ea5cf6dad92bd43aa66eaaaaf6e;p=dealii.git distributed_grids/large_vtu_01: fix test Let's only write to deallog on rank 0, otherwise the output might get truncated. --- diff --git a/tests/distributed_grids/large_vtu_01.cc b/tests/distributed_grids/large_vtu_01.cc index 18b6131537..b0e25bf619 100644 --- a/tests/distributed_grids/large_vtu_01.cc +++ b/tests/distributed_grids/large_vtu_01.cc @@ -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; } diff --git a/tests/distributed_grids/large_vtu_01.with_p4est=true.with_zlib=on.mpirun=4.output b/tests/distributed_grids/large_vtu_01.with_p4est=true.with_zlib=on.mpirun=4.output index 40c58b1ba0..68d6f439c2 100644 --- a/tests/distributed_grids/large_vtu_01.with_p4est=true.with_zlib=on.mpirun=4.output +++ b/tests/distributed_grids/large_vtu_01.with_p4est=true.with_zlib=on.mpirun=4.output @@ -7,6 +7,8 @@ DEAL:0:: OK -DEAL:1::n_global_active_cells: 8 n_global_levels: 2 -DEAL:1::OK + + + +