Skip to content

Commit

Permalink
Do not try to be too accurate in {l,f}gmres
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Aug 11, 2016
1 parent 0b16f82 commit 2e66eba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amgcl/solver/fgmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class fgmres {
if (iter >= prm.maxiter || j >= prm.M)
break;

if (inner_res <= prm.tol * norm_r || breakdown)
if (inner_res <= prm.tol * norm_rhs || breakdown)
break;
}

Expand Down
2 changes: 1 addition & 1 deletion amgcl/solver/lgmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class lgmres {
if (iter >= prm.maxiter || j >= prm.M + outer_v.size())
break;

if (inner_res <= prm.tol * norm_v0 || breakdown)
if (inner_res <= prm.tol * norm_rhs || breakdown)
break;
}

Expand Down

0 comments on commit 2e66eba

Please sign in to comment.