From: Wolfgang Bangerth Date: Sat, 12 Mar 2016 18:38:05 +0000 (-0600) Subject: Make a variable 'const'. X-Git-Tag: v8.5.0-rc1~1203^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a2be03c11e5efab6c9ef84e8520949fbcb62f8a;p=dealii.git Make a variable 'const'. --- diff --git a/source/base/index_set.cc b/source/base/index_set.cc index f0045e83b8..4aae54387d 100644 --- a/source/base/index_set.cc +++ b/source/base/index_set.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2005 - 2015 by the deal.II authors +// Copyright (C) 2005 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -513,7 +513,7 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator, // Check that all the processors have a contiguous range of values. Otherwise, // we risk to call different Epetra_Map on different processors and the code // hangs. - bool all_contiguous = (Utilities::MPI::min (is_contiguous() ? 1 : 0, communicator) == 1); + const bool all_contiguous = (Utilities::MPI::min (is_contiguous() ? 1 : 0, communicator) == 1); if ((all_contiguous) && (!overlapping)) return Epetra_Map (TrilinosWrappers::types::int_type(size()), TrilinosWrappers::types::int_type(n_elements()),