#include "slepcmfn.h" PetscErrorCode MFNGetConvergedReason(MFN mfn,MFNConvergedReason *reason)Not Collective
| mfn | - the matrix function context |
| reason | - negative value indicates diverged, positive value converged |
Possible values for reason are
| MFN_CONVERGED_TOL | - converged up to tolerance | |
| MFN_CONVERGED_ITS | - solver completed the requested number of steps | |
| MFN_DIVERGED_ITS | - required more than max_it iterations to reach convergence | |
| MFN_DIVERGED_BREAKDOWN | - generic breakdown in method |
Can only be called after the call to MFNSolve() is complete.
Basic solvers (e.g. unrestarted Krylov iterations) cannot determine if the computation is accurate up to the requested tolerance. In that case, the converged reason is set to MFN_CONVERGED_ITS if the requested number of steps (for instance, the ncv value in unrestarted Krylov methods) have been completed successfully.
Location: src/mfn/interface/mfnsolve.c