From 640d847c709c161fd3da4a81b18f4630314dd03f Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 31 May 2013 23:57:15 +0000 Subject: [PATCH] fix last commit git-svn-id: https://svn.dealii.org/trunk@29707 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/tests.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/tests.h b/tests/tests.h index 835c42a0c7..4dfffcbe91 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -117,13 +117,17 @@ class MPILogInitAll ~MPILogInitAll() { - deallog.pop(); - deallog.detach(); - deallogfile.close(); - MPI_Barrier(MPI_COMM_WORLD); - unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD); unsigned int nproc = Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD); + + deallog.pop(); + if (myid!=0) + { + deallog.detach(); + deallogfile.close(); + } + + MPI_Barrier(MPI_COMM_WORLD); if (myid==0) { -- 2.39.5