From 21df1723f8eadd7b2730309484b09b7ac8873084 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 20 Jul 2017 14:46:01 -0600 Subject: [PATCH] Make a couple of variables 'const'. --- source/base/mpi.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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