From: Wolfgang Bangerth Date: Thu, 20 Jul 2017 20:46:01 +0000 (-0600) Subject: Make a couple of variables 'const'. X-Git-Tag: v9.0.0-rc1~1399^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4641%2Fhead;p=dealii.git Make a couple of variables 'const'. --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index cdf04cf3b3..aa42b950fc 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -91,8 +91,8 @@ namespace Utilities compute_point_to_point_communication_pattern (const MPI_Comm &mpi_comm, const std::vector &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