[MOAB-dev] r1996 - MOAB/trunk/parallel

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Jul 8 11:48:31 CDT 2008


Author: kraftche
Date: 2008-07-08 11:48:31 -0500 (Tue, 08 Jul 2008)
New Revision: 1996

Modified:
   MOAB/trunk/parallel/WriteHDF5Parallel.cpp
Log:
Fix MPI call after MPI_finalize error:  need to release HDF5 property object that depends on MPI before MPI_finalize or the HDF5 lib will try to release it on exit, which is after the call to MPI_finalize.

Modified: MOAB/trunk/parallel/WriteHDF5Parallel.cpp
===================================================================
--- MOAB/trunk/parallel/WriteHDF5Parallel.cpp	2008-07-08 16:41:22 UTC (rev 1995)
+++ MOAB/trunk/parallel/WriteHDF5Parallel.cpp	2008-07-08 16:48:31 UTC (rev 1996)
@@ -568,8 +568,8 @@
     writeUtil->report_error( "%s\n", mhdf_message( &status ) );
     return MB_FAILURE;
   }
+  H5Pclose( hdf_opt );
   
-  
   return MB_SUCCESS;
 }
 




More information about the moab-dev mailing list