slepc-3.7.3 2016-09-29
Report Typos and Errors

# NEPGetConvergedReason

Gets the reason why the NEPSolve() iteration was stopped.

### Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPGetConvergedReason(NEP nep,NEPConvergedReason *reason)

Not Collective

### Input Parameter

| nep | - the nonlinear eigensolver context

### Output Parameter

| reason | - negative value indicates diverged, positive value converged

### Notes

Possible values for reason are

| NEP_CONVERGED_TOL | - converged up to tolerance
| NEP_CONVERGED_USER | - converged due to a user-defined condition
| NEP_DIVERGED_ITS | - required more than max_it iterations to reach convergence
| NEP_DIVERGED_BREAKDOWN | - generic breakdown in method
| NEP_DIVERGED_LINEAR_SOLVE | - inner linear solve failed

Can only be called after the call to NEPSolve() is complete.

### See Also

NEPSetTolerances(), NEPSolve(), NEPConvergedReason

Location: src/nep/interface/nepsolve.c
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages