[MOAB-dev] r1857 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed May 28 20:04:43 CDT 2008


Author: kraftche
Date: 2008-05-28 20:04:43 -0500 (Wed, 28 May 2008)
New Revision: 1857

Modified:
   MOAB/trunk/WriteHDF5.cpp
Log:
skip over invalid handles in set contents when writing file

Modified: MOAB/trunk/WriteHDF5.cpp
===================================================================
--- MOAB/trunk/WriteHDF5.cpp	2008-05-28 23:56:57 UTC (rev 1856)
+++ MOAB/trunk/WriteHDF5.cpp	2008-05-29 01:04:43 UTC (rev 1857)
@@ -1099,6 +1099,10 @@
     // if we ran out of space, just do list format
   if (output_id_list.end() - i < 2) {
     range_to_id_list( input_range, &output_id_list[0] );
+    output_id_list.erase( std::remove( output_id_list.begin(), 
+                                       output_id_list.end(), 
+                                       0 ), 
+                          output_id_list.end() );
     return MB_SUCCESS;
   }
   




More information about the moab-dev mailing list