From 4154f4a63f90a44679f3dce69ea7aad28c98948e Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Sat, 1 Dec 2018 15:51:08 +0100 Subject: [PATCH] [fgmres] Do not restart on last iteration --- dune/istl/solvers.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/istl/solvers.hh b/dune/istl/solvers.hh index 7f7883092..3eeb4882a 100644 --- a/dune/istl/solvers.hh +++ b/dune/istl/solvers.hh @@ -1489,8 +1489,8 @@ namespace Dune { // restart fGMRes if convergence was not achieved, // i.e. linear residual has not reached desired reduction - // and if still j < _maxit - if( res.converged != true && j <= _maxit) + // and if still j < _maxit (do not restart on last iteration) + if( res.converged != true && j < _maxit) { if (_verbose > 0) std::cout << "=== fGMRes::restart" << std::endl; -- GitLab