KSPGetIterationNumber
Gets the current iteration number (if the KSPSolve() (SLESSolve()) is complete, returns the number of iterations used.
Synopsis
#include "petscksp.h"
int KSPGetIterationNumber(KSP ksp,int *its)
Not Collective
Input Parameters
ksp -the iterative context
Output Parameters
its -number of iterations
Notes
During the ith iteration this returns i-1
Keywords
KSP, get, residual norm
See Also
KSPComputeResidual(), KSPGetResidualNorm()
Level:intermediate
Location:src/sles/ksp/interface/iterativ.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages