#include "petscksp.h" int KSPGetConvergedReason(KSP ksp,KSPConvergedReason *reason)Not Collective
Notes: Can only be called after the call the KSPSolve() is complete.
Level:intermediate
Location:src/sles/ksp/interface/iterativ.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages
KSP_CONVERGED_RTOL (residual norm decreased by a factor of rtol) | - . KSP_CONVERGED_ATOL (residual norm less than atol) | |
KSP_CONVERGED_ITS (used by the preonly preconditioner that always uses ONE iteration) | - . KSP_CONVERGED_QCG_NEG_CURVE | |
KSP_CONVERGED_QCG_CONSTRAINED | - . KSP_CONVERGED_STEP_LENGTH | |
KSP_DIVERGED_ITS (required more than its to reach convergence) | - . KSP_DIVERGED_DTOL (residual norm increased by a factor of divtol) | |
KSP_DIVERGED_BREAKDOWN (generic breakdown in method) | - - KSP_DIVERGED_BREAKDOWN_BICG (Initial residual is orthogonal to preconditioned initial residual. Try a different preconditioner, or a different initial guess. |