[MOAB-dev] r4708 - MOAB/trunk/src/io
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Fri Apr 1 09:09:23 CDT 2011
Author: kraftche
Date: 2011-04-01 09:09:23 -0500 (Fri, 01 Apr 2011)
New Revision: 4708
Modified:
MOAB/trunk/src/io/ReadHDF5.cpp
Log:
fix build issue with HDF5 1.6.x, and fix warnings from 32-bit build
Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp 2011-03-31 23:30:30 UTC (rev 4707)
+++ MOAB/trunk/src/io/ReadHDF5.cpp 2011-04-01 14:09:23 UTC (rev 4708)
@@ -121,7 +121,7 @@
herr_t result = 0;
if (h->func)
result = (*h->func)(h->data);
- error(MB_FAILURE);
+ process_error(MB_FAILURE,0,__FILE__,__LINE__);
return result;
}
#endif
@@ -920,7 +920,8 @@
}
debug_barrier();
- dbgOut.tprintf( 1, "READING NODE COORDINATES (%lu nodes in %lu selects)\n", nodes.size(), nodes.psize() );
+ dbgOut.tprintf( 1, "READING NODE COORDINATES (%lu nodes in %lu selects)\n",
+ (unsigned long)nodes.size(), (unsigned long)nodes.psize() );
// Read node coordinates and create vertices in MOAB
// NOTE: This populates the RangeMap with node file ids,
@@ -1422,7 +1423,8 @@
CHECK_OPEN_HANDLES;
debug_barrier();
- dbgOut.tprintf( 1, "READING %s CONNECTIVITY (%lu elems in %lu selects)\n", elems.handle, file_ids.size(), file_ids.psize() );
+ dbgOut.tprintf( 1, "READING %s CONNECTIVITY (%lu elems in %lu selects)\n",
+ elems.handle, (unsigned long)file_ids.size(), (unsigned long)file_ids.psize() );
ErrorCode rval = MB_SUCCESS;
mhdf_Status status;
@@ -1645,7 +1647,8 @@
CHECK_OPEN_HANDLES;
debug_barrier();
- dbgOut.tprintf( 1, "READING %s CONNECTIVITY (%lu elems in %lu selects)\n", fileInfo->elems[i].handle, elems_in.size(), elems_in.psize() );
+ dbgOut.tprintf( 1, "READING %s CONNECTIVITY (%lu elems in %lu selects)\n", fileInfo->elems[i].handle,
+ (unsigned long)elems_in.size(), (unsigned long)elems_in.psize() );
EntityHandle* const buffer = reinterpret_cast<EntityHandle*>(dataBuffer);
const int node_per_elem = fileInfo->elems[i].desc.vals_per_ent;
More information about the moab-dev
mailing list