improve error message for failed Krylov solver
Bug #1157333 reported by
Nico Schlömer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When a PETSc Krylov solver hasn't converged for one reason or another, the error message currently reads something like
*** Error: Unable to solve linear system using PETSc Krylov solver.
*** Reason: Solution failed to converge in 1000 iterations (PETSc reason DIVERGED_ITS, norm 1.165166e-18).
*** Where: This error was encountered inside PETScKrylovSolv
It isn't quite clear what the "norm" here is.
I suggest replacing this by
*** Reason: Solution failed to converge in 1000 iterations (PETSc reason DIVERGED_ITS, ||r|| = 1.165166e-18, ||r||/|
Related branches
Changed in dolfin: | |
status: | New → Fix Committed |
To post a comment you must log in.
Moreover it is probably norm of preconditioned rhs to be clear.