From: heister Date: Fri, 31 May 2013 23:57:15 +0000 (+0000) Subject: fix last commit X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4619cc06af874baf0839a8d267a52aaaabaf249;p=dealii-svn.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) {