]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix last commit
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 23:57:15 +0000 (23:57 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 23:57:15 +0000 (23:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@29707 0785d39b-7218-0410-832d-ea1e28bc413d

tests/tests.h

index 835c42a0c7e64769351dde5f160ac03cc33ab3d1..4dfffcbe917bea546bd1f93ace07e5115678fec0 100644 (file)
@@ -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)
          {     

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.