[MOAB-dev] r3850 - MOAB/trunk/src/parallel

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed May 5 15:06:34 CDT 2010


Author: kraftche
Date: 2010-05-05 15:06:34 -0500 (Wed, 05 May 2010)
New Revision: 3850

Modified:
   MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
Log:
fix warnings

Modified: MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
===================================================================
--- MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp	2010-05-05 20:06:24 UTC (rev 3849)
+++ MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp	2010-05-05 20:06:34 UTC (rev 3850)
@@ -159,7 +159,7 @@
 #ifndef DEBUG
 static void print_type_sets( Interface* , int , int , Range& ) {}
 #else
-static void print_type_sets( Interface* iFace, int rank, int size, Range& sets )
+static void print_type_sets( Interface* iFace, int /*rank*/, int /*size*/, Range& sets )
 {
   Tag gid, did, bid, sid, nid;
   iFace->tag_get_handle( GLOBAL_ID_TAG_NAME, gid ); 
@@ -1254,7 +1254,7 @@
   for (unsigned j = 0; j < myPcomm->proc_config().proc_size(); ++j)
   {
     const int start = w;
-    for (int i = 0; i < data.counts[j]; ++i)
+    for (i = 0; i < data.counts[j]; ++i)
     {
       std::vector<int>::iterator p 
         = std::lower_bound( sorted.begin(), sorted.end(), data.all_values[r] );
@@ -2042,9 +2042,9 @@
   return WriteHDF5::write_finished();
 }
 
+#ifdef TIME_DEBUG
 void WriteHDF5Parallel::tprint( const char* fmt, ... )
 {
-#ifdef TIME_DEBUG
   static const double t0 = MPI_Wtime();
   va_list args;
   va_start(args, fmt);
@@ -2058,8 +2058,10 @@
   strcpy( buffer+n, "\n" );
   fputs( buffer, stderr ); 
   va_end(args);
+}
+#else
+void WriteHDF5Parallel::tprint( const char* , ... ) {}
 #endif
-}
 
 class TagNameCompare {
   Interface* iFace;








More information about the moab-dev mailing list