[MOAB-dev] r3952 - MOAB/trunk/src/io

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue May 25 11:28:44 CDT 2010


Author: kraftche
Date: 2010-05-25 11:28:44 -0500 (Tue, 25 May 2010)
New Revision: 3952

Modified:
   MOAB/trunk/src/io/WriteHDF5.cpp
Log:
fix bug writing set parent links in parallel

Modified: MOAB/trunk/src/io/WriteHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/WriteHDF5.cpp	2010-05-25 16:03:11 UTC (rev 3951)
+++ MOAB/trunk/src/io/WriteHDF5.cpp	2010-05-25 16:28:44 UTC (rev 3952)
@@ -559,6 +559,7 @@
   if (MB_SUCCESS != result)
     return error(result);
 
+  debug_barrier();
   dbgOut.tprint(1,"Writing adjacencies.\n");
   
     // Write adjacencies
@@ -1034,8 +1035,10 @@
     CHK_MHDF_ERR_1(status, table);
   }
 
-  if (parallelWrite)
+  if (parallelWrite && children)
     rval = write_shared_set_children( table, &track );
+  if (parallelWrite && !children)
+    rval = write_shared_set_parents( table, &track );
   mhdf_closeData( filePtr, table, &status );
   CHK_MB_ERR_0(rval);
 





























More information about the moab-dev mailing list