[MOAB-dev] r4180 - MOAB/trunk/src/io
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Tue Sep 28 16:34:42 CDT 2010
Author: kraftche
Date: 2010-09-28 16:34:42 -0500 (Tue, 28 Sep 2010)
New Revision: 4180
Modified:
MOAB/trunk/src/io/ReadHDF5.cpp
Log:
remove invalid assert()
Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp 2010-09-28 19:47:05 UTC (rev 4179)
+++ MOAB/trunk/src/io/ReadHDF5.cpp 2010-09-28 21:34:42 UTC (rev 4180)
@@ -1630,6 +1630,8 @@
}
// now delete anything remaining in all_elems
+ dbgOut.printf( 2, "Deleting %lu elements\n", (unsigned long)all_elems.size() );
+ dbgOut.print( 4, "\tDead entities: ", all_elems );
rval = iFace->delete_entities( all_elems );
if (MB_SUCCESS != rval)
return error(rval);
@@ -2980,7 +2982,9 @@
// Given that all of the entities for this dense tag data should
// have been created as a single contiguous block, the resulting
// MOAB handle range should be contiguous.
- assert( handles.empty() || handles.size() == (handles.back() - handles.front() + 1));
+ // THE ABOVE IS NOT NECESSARILY TRUE. SOMETIMES LOWER-DIMENSION
+ // ENTS ARE READ AND THEN DELETED FOR PARTIAL READS.
+ //assert( handles.empty() || handles.size() == (handles.back() - handles.front() + 1));
std::string tn("<error>");
iFace->tag_get_name( tag_handle, tn );
More information about the moab-dev
mailing list