[MOAB-dev] r4425 - MOAB/trunk/src/io
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Mon Jan 10 12:47:01 CST 2011
Author: kraftche
Date: 2011-01-10 12:47:01 -0600 (Mon, 10 Jan 2011)
New Revision: 4425
Modified:
MOAB/trunk/src/io/ReadHDF5.cpp
Log:
fix failing assertions in ReadHDF5
Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp 2011-01-07 18:33:20 UTC (rev 4424)
+++ MOAB/trunk/src/io/ReadHDF5.cpp 2011-01-10 18:47:01 UTC (rev 4425)
@@ -338,8 +338,8 @@
file_prop = H5Pcreate(H5P_FILE_ACCESS);
err = H5Pset_fapl_mpio(file_prop, MPI_COMM_SELF, MPI_INFO_NULL);
- assert(file_prop > 0);
- assert(err > 0);
+ assert(file_prop >= 0);
+ assert(err >= 0);
filePtr = mhdf_openFileWithOpt( pfilename.c_str(), 0, NULL, file_prop, &status );
H5Pclose( file_prop );
@@ -374,13 +374,13 @@
file_prop = H5Pcreate(H5P_FILE_ACCESS);
err = H5Pset_fapl_mpio(file_prop, myPcomm->proc_config().proc_comm(), MPI_INFO_NULL);
- assert(file_prop > 0);
- assert(err > 0);
+ assert(file_prop >= 0);
+ assert(err >= 0);
collIO = H5Pcreate(H5P_DATASET_XFER);
assert(collIO > 0);
err = H5Pset_dxpl_mpio(collIO, H5FD_MPIO_COLLECTIVE);
- assert(err > 0);
+ assert(err >= 0);
indepIO = nativeParallel ? H5P_DEFAULT : collIO;
// re-open file in parallel
More information about the moab-dev
mailing list