[MOAB-dev] r3020 - MOAB/trunk
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu Jul 16 17:16:10 CDT 2009
Author: kraftche
Date: 2009-07-16 17:16:10 -0500 (Thu, 16 Jul 2009)
New Revision: 3020
Modified:
MOAB/trunk/ReadHDF5.cpp
Log:
respected PARALLEL_COMM option
Modified: MOAB/trunk/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/ReadHDF5.cpp 2009-07-16 21:16:27 UTC (rev 3019)
+++ MOAB/trunk/ReadHDF5.cpp 2009-07-16 22:16:10 UTC (rev 3020)
@@ -186,7 +186,13 @@
free(dataBuffer);
return MB_NOT_IMPLEMENTED;
#else
- MBParallelComm* myPcomm = MBParallelComm::get_pcomm(iFace, 0);
+ int pcomm_no = 0;
+ result = opts.get_int_option("PARALLEL_COMM", pcomm_no);
+ if (result == MB_TYPE_OUT_OF_RANGE) {
+ readUtil->report_error("Invalid value for PARALLEL_COMM option");
+ return result;
+ }
+ MBParallelComm* myPcomm = MBParallelComm::get_pcomm(iFace, pcomm_no);
if (0 == myPcomm) {
myPcomm = new MBParallelComm(iFace);
}
More information about the moab-dev
mailing list