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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon Mar 28 16:57:36 CDT 2011


Author: kraftche
Date: 2011-03-28 16:57:36 -0500 (Mon, 28 Mar 2011)
New Revision: 4669

Modified:
   MOAB/trunk/src/io/ReadHDF5.cpp
Log:
add some additionl timing data to debug output

Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp	2011-03-28 18:33:59 UTC (rev 4668)
+++ MOAB/trunk/src/io/ReadHDF5.cpp	2011-03-28 21:57:36 UTC (rev 4669)
@@ -807,6 +807,7 @@
   Range sets;
   intersect( fileInfo->sets, file_ids, sets );
   if (content_mode == 2 || child_mode == 2) {
+    dbgOut.tprint( 1, "  doing read_set_ids_recursive\n" );
     rval = read_set_ids_recursive( sets, content_mode == 2, child_mode == 2 );
     if (MB_SUCCESS != rval)
       return error(rval);
@@ -815,6 +816,7 @@
   debug_barrier();
   
     // get elements and vertices contained in sets
+  dbgOut.tprint( 1, "  doing get_set_contents\n" );
   rval = get_set_contents( sets, file_ids );
   if (MB_SUCCESS != rval)
     return error(rval);
@@ -1017,10 +1019,13 @@
     // them now. If we were also reading their contents we would
     // have found them already.
   if (content_mode == 1 || child_mode == 1) {
+    dbgOut.tprint( 1, "  doing read_set_ids_recursive\n" );
     rval = read_set_ids_recursive( sets, content_mode != 0, child_mode != 0 );
     if (MB_SUCCESS != rval)
       return error(rval);
   }
+  
+  dbgOut.tprint( 1, "  doing find_sets_containing\n" );
     // Append file IDs of sets containing any of the nodes or elements
     // we've read up to this point.
   rval = find_sets_containing( sets );
@@ -1031,6 +1036,7 @@
   EntityHandle first_set = fileInfo->sets.start_id;
   sets.merge( file_ids.lower_bound( first_set ),
               file_ids.lower_bound( first_set + fileInfo->sets.count ) );
+  dbgOut.tprint( 1, "  doing read_sets\n" );
   rval = read_sets( sets );
   if (MB_SUCCESS != rval)
     return error(rval);
@@ -1936,7 +1942,10 @@
   
   ErrorCode rval = MB_SUCCESS;
   Range children, new_children(sets_in_out);
+  int iteration_count = 0;
   do {
+    ++iteration_count;
+    dbgOut.tprintf(2,"Iteration %d of read_set_ids_recursive\n",iteration_count);
     children.clear();


More information about the moab-dev mailing list