slepc-3.12.2 2020-01-13
Report Typos and Errors

# EPSGetIterationNumber

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

### Synopsis

    #include "slepceps.h"
    #include "slepcbv.h"
    PetscErrorCode EPSGetIterationNumber(EPS eps,PetscInt *its)

Not Collective

### Input Parameter

| eps | - the eigensolver context

### Output Parameter

| its | - number of iterations

### Note

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

### See Also

EPSGetConvergedReason(), EPSSetTolerances()

Location: src/eps/interface/epssolve.c
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/eps/examples/tutorials/ex1.c.html
src/eps/examples/tutorials/ex4.c.html
src/eps/examples/tutorials/ex7.c.html
src/eps/examples/tutorials/ex19.c.html
src/eps/examples/tutorials/ex31.c.html
src/eps/examples/tutorials/ex1f.F.html
src/eps/examples/tutorials/ex6f90.F90.html