PetscErrorCode QPSConvergedDefault(QPS qps,KSPConvergedReason *reason)Collective on QPS
qps | - iterative context |
positive | - if the iteration has converged; | |
negative | - if residual norm exceeds divergence threshold; | |
0 | - otherwise. |
rnorm < MAX (rtol * rnorm_0, abstol);Divergence is detected if
rnorm > dtol * rnorm_0,where
rtol | - relative tolerance, | |
abstol | - absolute tolerance, | |
dtol | - divergence tolerance, | |
rnorm_0 | - the 2-norm of the right hand side. Use QPSSetTolerances() to alter the defaults for rtol, abstol, dtol. |
The precise values of reason are macros such as KSP_CONVERGED_RTOL, which are defined in petscksp.h.