From d477dee419ff7ea5cf6dad92bd43aa66eaaaaf6e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 8 Jun 2022 16:47:07 -0500 Subject: [PATCH] distributed_grids/large_vtu_01: fix test Let's only write to deallog on rank 0, otherwise the output might get truncated. --- tests/distributed_grids/large_vtu_01.cc | 11 +++++++---- ...tu_01.with_p4est=true.with_zlib=on.mpirun=4.output | 6 ++++-- 2 files changed, 11 insertions(+), 6 deletions(-) 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 + + + + -- 2.39.5