[MOAB-dev] r4903 - in MOAB/trunk: src/parallel tools/dagmc

tautges at mcs.anl.gov tautges at mcs.anl.gov
Wed Jun 1 11:01:06 CDT 2011


Author: tautges
Date: 2011-06-01 11:01:05 -0500 (Wed, 01 Jun 2011)
New Revision: 4903

Modified:
   MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
   MOAB/trunk/tools/dagmc/obb_analysis.cpp
Log:
Removing warnings about hiding previously-declared variables.

Casting in arguments to pow() to remove ambiguity in which overloaded version to call
(failed to compile without that on intel).



Modified: MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
===================================================================
--- MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp	2011-06-01 15:01:11 UTC (rev 4902)
+++ MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp	2011-06-01 16:01:05 UTC (rev 4903)
@@ -846,17 +846,17 @@
     }
     
       // broadcast any new tag definitions from root to other procs
-    long size = tag_buffer.size();
+    long this_size = tag_buffer.size();
     if (MB_SUCCESS != rval)
-      size = -rval;
-    err = MPI_Bcast( &size, 1, MPI_LONG, 0, comm );
+      this_size = -rval;
+    err = MPI_Bcast( &this_size, 1, MPI_LONG, 0, comm );
     CHECK_MPI(err);
-    if (size < 0) {
+    if (this_size < 0) {
       writeUtil->report_error("Inconsistent tag definitions between procs.");
-      return error((ErrorCode)-size);
+      return error((ErrorCode)-this_size);
     }
-    tag_buffer.resize(size);
-    err = MPI_Bcast( &tag_buffer[0], size, MPI_UNSIGNED_CHAR, 0, comm );
+    tag_buffer.resize(this_size);
+    err = MPI_Bcast( &tag_buffer[0], this_size, MPI_UNSIGNED_CHAR, 0, comm );
     CHECK_MPI(err);
     
       // process new tag definitions
@@ -1080,10 +1080,10 @@
     for (tag_iter = tagList.begin(); tag_iter != tagList.end(); ++tag_iter) {
       std::string name;
       iFace->tag_get_name( tag_iter->tag_id, name );
-      size_t size;
-      get_num_sparse_tagged_entities( *tag_iter, size );
+      size_t this_size;
+      get_num_sparse_tagged_entities( *tag_iter, this_size );
       dbgOut.printf(2,"%18s %8lu %8lu %8lu %8lu 0x%7lx\n", name.c_str(), 
-        (unsigned long)size, 
+        (unsigned long)this_size, 
         (unsigned long)tag_iter->sparse_offset,
         (unsigned long)tag_iter->var_data_offset,
         (unsigned long)tag_iter->max_num_ents,

Modified: MOAB/trunk/tools/dagmc/obb_analysis.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/obb_analysis.cpp	2011-06-01 15:01:11 UTC (rev 4902)
+++ MOAB/trunk/tools/dagmc/obb_analysis.cpp	2011-06-01 16:01:05 UTC (rev 4903)
@@ -118,7 +118,7 @@
   Range surfs;
   for(  std::vector<int>::iterator it = volumes.begin()+1; it!=volumes.end(); ++it ){


More information about the moab-dev mailing list