[MOAB-dev] r4598 - MOAB/trunk/src/io

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Mar 15 18:42:41 CDT 2011


Author: kraftche
Date: 2011-03-15 18:42:41 -0500 (Tue, 15 Mar 2011)
New Revision: 4598

Modified:
   MOAB/trunk/src/io/WriteHDF5.cpp
Log:
minor fix to HDF5 writer: be consistent about how the data is 'stored' for empty entity sets

Modified: MOAB/trunk/src/io/WriteHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/WriteHDF5.cpp	2011-03-15 23:15:04 UTC (rev 4597)
+++ MOAB/trunk/src/io/WriteHDF5.cpp	2011-03-15 23:42:41 UTC (rev 4598)
@@ -1239,7 +1239,7 @@
       unsigned char flags;
       rval = writeUtil->get_entity_list_pointers( j, i, &ptr, which_data, &len, &flags );
       if (MB_SUCCESS != rval) return rval;
-      if (which_data == WriteUtilIface::CONTENTS && !(flags&MESHSET_ORDERED)) {
+      if (which_data == WriteUtilIface::CONTENTS && !(flags&MESHSET_ORDERED) && len > 2) {
         bool compacted;
         remaining.clear();
         rval = range_to_blocked_list( ptr, len/2, remaining, compacted );








































More information about the moab-dev mailing list