[MOAB-dev] r2005 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Jul 9 13:47:26 CDT 2008


Author: kraftche
Date: 2008-07-09 13:47:26 -0500 (Wed, 09 Jul 2008)
New Revision: 2005

Modified:
   MOAB/trunk/ReadHDF5.cpp
Log:
clean up read of file with no vertices

Modified: MOAB/trunk/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/ReadHDF5.cpp	2008-07-09 17:31:02 UTC (rev 2004)
+++ MOAB/trunk/ReadHDF5.cpp	2008-07-09 18:47:26 UTC (rev 2005)
@@ -241,7 +241,7 @@
 DEBUGOUT("Reading Nodes.\n");
   
   rval = read_nodes();
-  if (MB_ENTITY_NOT_FOUND == rval) {
+  if (MB_FILE_WRITE_ERROR == rval) {
     DEBUGOUT("No nodes in file.!\n");
     have_nodes = false;
   }
@@ -368,7 +368,7 @@
     nodeSet.first_id = std::numeric_limits<long>::max();
     nodeSet.type = MBVERTEX;
     nodeSet.type2 = mhdf_node_type_handle();
-    return MB_SUCCESS;
+    return MB_FILE_WRITE_ERROR;
   }
   
   if (cdim < dim)




More information about the moab-dev mailing list