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

hongjun at mcs.anl.gov hongjun at mcs.anl.gov
Wed Jul 14 14:50:44 CDT 2010


Author: hongjun
Date: 2010-07-14 14:50:44 -0500 (Wed, 14 Jul 2010)
New Revision: 4055

Modified:
   MOAB/trunk/src/io/WriteHDF5.cpp
Log:
o To write structured mesh, dummy storage vector is added for "get_connectivity" function


Modified: MOAB/trunk/src/io/WriteHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/WriteHDF5.cpp	2010-07-14 18:47:17 UTC (rev 4054)
+++ MOAB/trunk/src/io/WriteHDF5.cpp	2010-07-14 19:50:44 UTC (rev 4055)
@@ -388,9 +388,8 @@
   if (MB_SUCCESS == opts.get_int_option("DEBUG_IO", 1, tmpval)) {
     dbgOut.set_verbosity(tmpval);
   }
-  
+
   writeTagDense = (MB_SUCCESS == opts.get_null_option("DENSE_TAGS"));
-    
 
   // Enable some extra checks for reads.  Note: amongst other things this
   // will print errors if the entire file is not read, so if doing a 
@@ -629,12 +628,16 @@
       Range::const_iterator first = i;
       EntityHandle const* conn;
       int len, firstlen;
-      rval = iFace->get_connectivity( *i, conn, firstlen );
+
+      // dummy storage vector for structured mesh "get_connectivity" function
+      std::vector<EntityHandle> storage;
+      
+      rval = iFace->get_connectivity( *i, conn, firstlen, false, &storage );
       if (MB_SUCCESS != rval)
         return error(rval);
       
       for (++i; i != p.second; ++i) {
-        rval = iFace->get_connectivity( *i, conn, len );
+        rval = iFace->get_connectivity( *i, conn, len, false, &storage );
         if (MB_SUCCESS != rval)
           return error(rval);
         



















More information about the moab-dev mailing list