From: Timo Heister Date: Fri, 31 May 2013 23:57:15 +0000 (+0000) Subject: fix last commit X-Git-Tag: v8.0.0~345 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640d847c709c161fd3da4a81b18f4630314dd03f;p=dealii.git fix last commit git-svn-id: https://svn.dealii.org/trunk@29707 0785d39b-7218-0410-832d-ea1e28bc413d --- 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) {