From 7a2be03c11e5efab6c9ef84e8520949fbcb62f8a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 12 Mar 2016 12:38:05 -0600 Subject: [PATCH] Make a variable 'const'. --- source/base/index_set.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()), -- 2.39.5