From a8e40bf2f8940b950fde37e24d653da005834f6f Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Tue, 18 Dec 2012 10:22:24 +0000 Subject: [PATCH] Use end and do not allow more steps than maxsteps. [[Imported from SVN: r1743]] --- dune/istl/solvers.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/istl/solvers.hh b/dune/istl/solvers.hh index f0e75a856..f6cf683c4 100644 --- a/dune/istl/solvers.hh +++ b/dune/istl/solvers.hh @@ -1602,7 +1602,7 @@ namespace Dune { while(i<_maxit) { // the loop int end=std::min(_restart, _maxit-i); - for (ii=1; ii<_restart; ++ii ) + for (ii=1; ii<end; ++ii ) { //std::cout<<" ii="<<ii<<" i="<<i<<std::endl; // compute next conjugate direction -- GitLab