]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a couple of variables 'const'. 4641/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 20 Jul 2017 20:46:01 +0000 (14:46 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 20 Jul 2017 20:46:01 +0000 (14:46 -0600)
source/base/mpi.cc

index cdf04cf3b3e792bd5cec1026b55dad60f8ed5fe5..aa42b950fc25ca6fbfc2cd528d788ebc1da19c9e 100644 (file)
@@ -91,8 +91,8 @@ namespace Utilities
     compute_point_to_point_communication_pattern (const MPI_Comm &mpi_comm,
                                                   const std::vector<unsigned int> &destinations)
     {
-      unsigned int myid = Utilities::MPI::this_mpi_process(mpi_comm);
-      unsigned int n_procs = Utilities::MPI::n_mpi_processes(mpi_comm);
+      const unsigned int myid = Utilities::MPI::this_mpi_process(mpi_comm);
+      const unsigned int n_procs = Utilities::MPI::n_mpi_processes(mpi_comm);
 
       for (unsigned int i=0; i<destinations.size(); ++i)
         {

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.