From 54e20e25efc33cea51dee80bea6992a54c8921f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@mi.fu-berlin.de>
Date: Mon, 5 Dec 2011 16:07:34 +0000
Subject: [PATCH] Remove duplicate loop

Shame on me for introducing this! Surprisingly no one ever
bothered to setup the whole matrix hierarchy twice.

Thanks to Elias for pointing me to this.

[[Imported from SVN: r4978]]
---
 dune/solvers/iterationsteps/multigridstep.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dune/solvers/iterationsteps/multigridstep.cc b/dune/solvers/iterationsteps/multigridstep.cc
index 394acdb9..d2a11bb9 100644
--- a/dune/solvers/iterationsteps/multigridstep.cc
+++ b/dune/solvers/iterationsteps/multigridstep.cc
@@ -99,9 +99,6 @@ void MultigridStep<MatrixType, VectorType, BitVectorType>::preprocess()
     } else 
         DUNE_THROW(SolverError, "We need a set of nodes to ignore");
 
-    for (i=this->mgTransfer_.size()-1; i>=0; i--) 
-        this->mgTransfer_[i]->galerkinRestrict(*this->mat_[i+1], *(const_cast<MatrixType*>(this->mat_[i])));
-
     // /////////////////////////////////////////////
     //   Set up base solver
     // /////////////////////////////////////////////
-- 
GitLab