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

# MFNGetIterationNumber

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

### Synopsis

    #include "slepcmfn.h"
    PetscErrorCode MFNGetIterationNumber(MFN mfn,PetscInt *its)

Not Collective

### Input Parameter

| mfn | - the matrix function context

### Output Parameter

| its | - number of iterations

### Note

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

### See Also

MFNGetConvergedReason(), MFNSetTolerances()

Location: src/mfn/interface/mfnsolve.c
Index of all MFN routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/mfn/examples/tutorials/ex23.c.html