]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a variable 'const'. 2371/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 12 Mar 2016 18:38:05 +0000 (12:38 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Mar 2016 07:16:12 +0000 (02:16 -0500)
source/base/index_set.cc

index f0045e83b87a6507807b0c3ce06b864369cc6b47..4aae54387dde5831a32e881ddc8cb585ae2ee235 100644 (file)
@@ -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()),

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.