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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri May 7 15:41:52 CDT 2010


Author: kraftche
Date: 2010-05-07 15:41:52 -0500 (Fri, 07 May 2010)
New Revision: 3863

Modified:
   MOAB/trunk/src/io/ReadHDF5.cpp
Log:
Print some coarse timing data

Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp	2010-05-07 20:41:29 UTC (rev 3862)
+++ MOAB/trunk/src/io/ReadHDF5.cpp	2010-05-07 20:41:52 UTC (rev 3863)
@@ -223,7 +223,7 @@
     dbgOut.set_rank(rank);
 
       // Open the file in serial on root to read summary
-    dbgOut.print( 1, "Getting file summary\n" );
+    dbgOut.tprint( 1, "Getting file summary\n" );
     fileInfo = 0;
     unsigned long size = 0;
     if (rank == 0) {
@@ -242,7 +242,7 @@
       }
     }
       // Broadcast the size of the struct (zero indicates an error)
-    dbgOut.print( 1, "Communicating file summary\n" );
+    dbgOut.tprint( 1, "Communicating file summary\n" );
     int err = MPI_Bcast( &size, 1, MPI_UNSIGNED_LONG, 0, myPcomm->proc_config().proc_comm() );
     if (err || !size)
       return MB_FAILURE;
@@ -264,7 +264,7 @@
     indepIO = native_parallel ? H5P_DEFAULT : collIO;
 
       // re-open file in parallel
-    dbgOut.printf( 1, "Re-opening \"%s\" for parallel IO\n", filename );
+    dbgOut.tprintf( 1, "Re-opening \"%s\" for parallel IO\n", filename );
     filePtr = mhdf_openFileWithOpt( filename, 0, NULL, file_prop, &status );
     H5Pclose( file_prop );
     if (!filePtr)
@@ -372,7 +372,7 @@
   std::string tagname;
   int i;
 
-  dbgOut.print(1, "Reading all nodes...\n");
+  dbgOut.tprint(1, "Reading all nodes...\n");
   Range ids;
   if (fileInfo->nodes.count) {
     ids.insert( fileInfo->nodes.start_id,
@@ -383,7 +383,7 @@
   }
 
 
-  dbgOut.print(1, "Reading all element connectivity...\n");
+  dbgOut.tprint(1, "Reading all element connectivity...\n");
   std::vector<int> polyhedra; // need to do these last so that faces are loaded
   for (i = 0; i < fileInfo->num_elem_desc; ++i) {
     if (CN::EntityTypeFromName(fileInfo->elems[i].type) == MBPOLYHEDRON) {
@@ -402,7 +402,7 @@
       return error(rval);


More information about the moab-dev mailing list