]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make an unused variable anonymous.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Oct 2010 23:51:42 +0000 (23:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Oct 2010 23:51:42 +0000 (23:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@22487 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/utilities.cc

index 614d399807b67523ef14c6709917cdfdcf15aad7..4af1ce1fc4eff55884eba0aefc19e80ef3d00fb3 100644 (file)
@@ -588,13 +588,17 @@ namespace Utilities
          }
       }
     }
+
+
     
     void calculate_collective_mpi_min_max_avg(const MPI_Comm &mpi_communicator,
                                              double my_value,
                                              MinMaxAvg & result)
     {
-      unsigned int my_id = dealii::Utilities::System::get_this_mpi_process(mpi_communicator);
-      unsigned int numproc = dealii::Utilities::System::get_n_mpi_processes(mpi_communicator);
+      const unsigned int my_id
+       = dealii::Utilities::System::get_this_mpi_process(mpi_communicator);
+      const unsigned int numproc
+       = dealii::Utilities::System::get_n_mpi_processes(mpi_communicator);
       
       MPI_Op op;
       int ierr = MPI_Op_create((MPI_User_function *)&max_reduce, true, &op);
@@ -715,7 +719,8 @@ namespace Utilities
       return 0;
     }
 
-    void calculate_collective_mpi_min_max_avg(const MPI_Comm &mpi_communicator,
+    
+    void calculate_collective_mpi_min_max_avg(const MPI_Comm &,
                                              double my_value,
                                              MinMaxAvg & result)
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.