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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue May 11 14:07:20 CDT 2010


Author: kraftche
Date: 2010-05-11 14:07:20 -0500 (Tue, 11 May 2010)
New Revision: 3881

Modified:
   MOAB/trunk/src/io/ReadHDF5.cpp
Log:
more debug output

Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp	2010-05-11 18:46:26 UTC (rev 3880)
+++ MOAB/trunk/src/io/ReadHDF5.cpp	2010-05-11 19:07:20 UTC (rev 3881)
@@ -2583,6 +2583,8 @@
 
 ErrorCode ReadHDF5::read_tag( int tag_index )
 {
+  dbgOut.tprintf(2, "Reading tag \"%s\"\n", fileInfo->tags[tag_index].name );
+
   ErrorCode rval;
   mhdf_Status status;
   Tag tag = 0;
@@ -2591,6 +2593,8 @@
   if (MB_SUCCESS != rval)
     return error(rval);
 
+  dbgOut.tprintf(3, "Read metadata for tag \"%s\"\n", fileInfo->tags[tag_index].name );
+
   if (fileInfo->tags[tag_index].have_sparse) {
     hid_t handles[3];
     long num_ent, num_val;
@@ -2603,11 +2607,15 @@
       return error(MB_FAILURE);
     }
 
-    if (fileInfo->tags[tag_index].size > 0)
+    if (fileInfo->tags[tag_index].size > 0) {
+      dbgOut.tprintf(3, "Read sparse data for tag \"%s\"\n", fileInfo->tags[tag_index].name );
       rval = read_sparse_tag( tag, read_type, handles[0], handles[1], num_ent );
-    else
+    }
+    else {
+      dbgOut.tprintf(3, "Read var-len sparse data for tag \"%s\"\n", fileInfo->tags[tag_index].name );
       rval = read_var_len_tag( tag, read_type, handles[0], handles[1], handles[2], num_ent, num_val );
-
+    }
+    
     mhdf_closeData( filePtr, handles[0], &status );
     if (MB_SUCCESS == rval && is_error(status))
       rval = MB_FAILURE;
@@ -2646,6 +2654,8 @@
       return error(MB_FAILURE);
     }
     
+    dbgOut.tprintf(3, "Read dense data block for tag \"%s\" on \"%s\"\n", fileInfo->tags[tag_index].name, name );
+    
     hid_t handle = mhdf_openDenseTagData( filePtr, 
                                           fileInfo->tags[tag_index].name,
                                           name,



More information about the moab-dev mailing list