From a82dc4ef5fee0d9724ef30844beaed14741fe778 Mon Sep 17 00:00:00 2001
From: Uli Sack <usack@math.fu-berlin.de>
Date: Tue, 21 Jul 2015 15:20:27 +0200
Subject: [PATCH] give rhs constructor parameter the const qualifier - same as
 in the setter method as well as the base clas constructors

---
 dune/solvers/iterationsteps/multigridstep.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/solvers/iterationsteps/multigridstep.hh b/dune/solvers/iterationsteps/multigridstep.hh
index 73e67eac..ed34da11 100644
--- a/dune/solvers/iterationsteps/multigridstep.hh
+++ b/dune/solvers/iterationsteps/multigridstep.hh
@@ -34,7 +34,7 @@
 
         MultigridStep(const MatrixType& mat,
                       VectorType& x,
-                      VectorType& rhs,
+                      const VectorType& rhs,
                       int mu, int nu1, int nu2,
                       LinearIterationStep<MatrixType, VectorType>* preSmoother,
                       LinearIterationStep<MatrixType, VectorType>* postSmoother,
@@ -56,7 +56,7 @@
 
         MultigridStep(const MatrixType& mat,
                       VectorType& x,
-                      VectorType& rhs) :
+                      const VectorType& rhs) :
             LinearIterationStep<MatrixType, VectorType>(mat, x, rhs),
             basesolver_(0),
             preprocessCalled(false)
-- 
GitLab