Skip to content
Snippets Groups Projects
Commit dad6bc3c authored by Christian Engwer's avatar Christian Engwer
Browse files

[!172] [gmres][bugfix] Fix double call of prec->post(x) when res is zero

Merge branch 'feature/gmres-fix-prec-call-zeroresidual' into 'master'

ref:core/dune-istl The post-processing routine was called twice, once before
the outer while loop and once after when the residual was initially zero. This
lead to a segmentation fault in the AMG preconditioner. Now it only gets
called once.

See merge request [!172]

  [!172]: gitlab.dune-project.org/core/dune-istl/merge_requests/172
parents 00ef4001 6f62d30a
No related branches found
No related tags found
1 merge request!172[gmres][bugfix] Fix double call of prec->post(x) when res is zero
Pipeline #15305 passed
......@@ -1123,8 +1123,8 @@ namespace Dune {
}
}
if(Simd::allTrue(norm_0 < EPSILON)) {
_prec->post(x);
if(Simd::allTrue(norm_0 < EPSILON))
{
res.converged = true;
if(_verbose > 0) // final print
print_result(res);
......
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