[MOAB-dev] r4336 - MOAB/trunk/test/parallel
    tautges at mcs.anl.gov 
    tautges at mcs.anl.gov
       
    Tue Dec  7 13:00:00 CST 2010
    
    
  
Author: tautges
Date: 2010-12-07 13:00:00 -0600 (Tue, 07 Dec 2010)
New Revision: 4336
Modified:
   MOAB/trunk/test/parallel/mbparallelcomm_test.cpp
Log:
Moving MPI_Finalize to after all calls to MPI_Wtime, thanks Vipin.
Modified: MOAB/trunk/test/parallel/mbparallelcomm_test.cpp
===================================================================
--- MOAB/trunk/test/parallel/mbparallelcomm_test.cpp	2010-12-07 18:34:53 UTC (rev 4335)
+++ MOAB/trunk/test/parallel/mbparallelcomm_test.cpp	2010-12-07 19:00:00 UTC (rev 4336)
@@ -189,8 +189,6 @@
   
   if (0 == rank) dtime = MPI_Wtime();
 
-  err = MPI_Finalize();
-
   result = mbImpl->delete_mesh();
   if (MB_SUCCESS != result) {
     std::cerr << "Couldn't delete mesh on rank " << rank
@@ -209,6 +207,8 @@
                            << " (total/read/delete)"
                            << std::endl;
 
+  err = MPI_Finalize();
+
   delete mbImpl;
   
   return (MB_SUCCESS == result ? 0 : 1);
    
    
More information about the moab-dev
mailing list