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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed May 5 13:34:26 CDT 2010


Author: kraftche
Date: 2010-05-05 13:34:26 -0500 (Wed, 05 May 2010)
New Revision: 3847

Modified:
   MOAB/trunk/src/io/ReadHDF5.cpp
   MOAB/trunk/src/io/ReadHDF5.hpp
Log:
ReadHDF5: run time enable/disable of debug output using reader options

Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp	2010-05-05 18:33:53 UTC (rev 3846)
+++ MOAB/trunk/src/io/ReadHDF5.cpp	2010-05-05 18:34:26 UTC (rev 3847)
@@ -50,17 +50,11 @@
 #include <limits>
 #include <functional>
 
+#include "IODebugTrack.hpp"
+
 namespace moab {
 
-#undef DEBUG
 
-#ifdef DEBUG
-#  define DEBUGOUT(A) fputs( A, stderr )
-#  include <stdio.h>
-#else
-#  define DEBUGOUT(A)
-#endif
-
 #define READ_HDF5_BUFFER_SIZE (40*1024*1024)
 
 #if !defined(WIN32) && !defined(WIN64)
@@ -69,6 +63,7 @@
 # include <errno.h>
 #endif
 
+
 // This function doesn't do anything useful.  It's just a nice
 // place to set a break point to determine why the reader fails.
 static inline ErrorCode error( ErrorCode rval )
@@ -107,7 +102,9 @@
     readUtil( 0 ),
     handleType( 0 ),
     indepIO( H5P_DEFAULT ),
-    collIO( H5P_DEFAULT )
+    collIO( H5P_DEFAULT ),
+    debugTrack( false ),
+    dbgOut(stderr)
 {
 }
 
@@ -142,6 +139,7 @@
   
   idMap.clear();
   fileInfo = 0;
+  debugTrack = false;
   
   return MB_SUCCESS;
 }


More information about the moab-dev mailing list