# QEPGetConvergedReason

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

### Synopsis

    #include "slepcqep.h"
    PetscErrorCode QEPGetConvergedReason(QEP qep,QEPConvergedReason *reason)

Not Collective

### Input Parameter

qep - the quadratic eigensolver context

### Output Parameter

reason - negative value indicates diverged, positive value converged

### Possible values for reason

| QEP_CONVERGED_TOL | - converged up to tolerance
| QEP_DIVERGED_ITS | - required more than its to reach convergence
| QEP_DIVERGED_BREAKDOWN | - generic breakdown in method

### Note

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

### See Also

QEPSetTolerances(), QEPSolve(), QEPConvergedReason

Location: src/qep/interface/qepsolve.c
Index of all QEP routines
Table of Contents for all manual pages
Index of all manual pages