[MOAB-dev] r5206 - MOAB/trunk/src/io
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Mon Nov 7 17:20:12 CST 2011
Author: tautges
Date: 2011-11-07 17:20:12 -0600 (Mon, 07 Nov 2011)
New Revision: 5206
Modified:
MOAB/trunk/src/io/ReadHDF5.cpp
Log:
Fix problem causing the autotest to fail, putting MPI_Info stuff inside
PARALLEL_HDF5 #define block.
Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp 2011-11-07 00:58:33 UTC (rev 5205)
+++ MOAB/trunk/src/io/ReadHDF5.cpp 2011-11-07 23:20:12 UTC (rev 5206)
@@ -330,14 +330,6 @@
return MB_NOT_IMPLEMENTED;
}
- MPI_Info info = MPI_INFO_NULL;
- std::string cb_size;
- rval = opts.get_str_option("CB_BUFFER_SIZE", cb_size);
- if (MB_SUCCESS == rval) {
- MPI_Info_create (&info);
- MPI_Info_set (info, "cb_buffer_size", const_cast<char*>(cb_size.c_str()));
- }
-
// This option is intended for testing purposes only, and thus
// is not documented anywhere. Decreasing the buffer size can
// expose bugs that would otherwise only be seen when reading
@@ -378,6 +370,14 @@
return MB_NOT_IMPLEMENTED;
#else
+ MPI_Info info = MPI_INFO_NULL;
+ std::string cb_size;
+ rval = opts.get_str_option("CB_BUFFER_SIZE", cb_size);
+ if (MB_SUCCESS == rval) {
+ MPI_Info_create (&info);
+ MPI_Info_set (info, "cb_buffer_size", const_cast<char*>(cb_size.c_str()));
+ }
+
int pcomm_no = 0;
rval = opts.get_int_option("PARALLEL_COMM", pcomm_no);
if (rval == MB_TYPE_OUT_OF_RANGE) {
More information about the moab-dev
mailing list