Skip to content
Snippets Groups Projects
Commit 39de0dab authored by Timo Koch's avatar Timo Koch
Browse files

[gmres][fix] Do not restart on last iteration

Kudos to Mathis Springwald for pointing this out.
parent dc687ac2
No related branches found
No related tags found
1 merge request!245[gmres][fix] Do not restart on last iteration
......@@ -1196,8 +1196,8 @@ namespace Dune {
// restart GMRes if convergence was not achieved,
// i.e. linear defect has not reached desired reduction
// and if j < _maxit
if( res.converged != true && j <= _maxit ) {
// and if j < _maxit (do not restart on last iteration)
if( res.converged != true && j < _maxit ) {
if(_verbose > 0)
std::cout << "=== GMRes::restart" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment