[MOAB-dev] r1375 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Fri Nov 9 17:20:09 CST 2007


Author: kraftche
Date: 2007-11-09 17:20:08 -0600 (Fri, 09 Nov 2007)
New Revision: 1375

Modified:
   MOAB/trunk/ReadHDF5.cpp
Log:
Fix bug reading legacy poly data

Modified: MOAB/trunk/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/ReadHDF5.cpp	2007-11-09 22:28:33 UTC (rev 1374)
+++ MOAB/trunk/ReadHDF5.cpp	2007-11-09 23:20:08 UTC (rev 1375)
@@ -491,14 +491,15 @@
       return MB_FAILURE;
     }
     
-    rval = iFace->create_element( type, &connectivity[0], connectivity.size(), h );
+    rval= convert_id_to_handle( &connectivity[0], connectivity.size() );
     if (MB_SUCCESS != rval) 
     {
       mhdf_closeData( filePtr, handles[0], &status );
       mhdf_closeData( filePtr, handles[1], &status );
       return rval;
     }
-    rval= convert_id_to_handle( &connectivity[0], connectivity.size() );
+    
+    rval = iFace->create_element( type, &connectivity[0], connectivity.size(), h );
     if (MB_SUCCESS != rval) 
     {
       mhdf_closeData( filePtr, handles[0], &status );




More information about the moab-dev mailing list