# QEPGetIterationNumber

Gets the current iteration number. If the call to QEPSolve() is complete, then it returns the number of iterations carried out by the solution method.

### Synopsis

    #include "slepcqep.h"
    PetscErrorCode QEPGetIterationNumber(QEP qep,PetscInt *its)

Not Collective

### Input Parameter

qep - the quadratic eigensolver context

### Output Parameter

its - number of iterations

### Note

During the i-th iteration this call returns i-1. If QEPSolve() is complete, then parameter "its" contains either the iteration number at which convergence was successfully reached, or failure was detected. Call QEPGetConvergedReason() to determine if the solver converged or failed and why.

### See Also

QEPGetConvergedReason(), QEPSetTolerances()

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

### Examples

src/qep/examples/tutorials/ex17.c.html