petsc-3.12.5 2020-03-29
Report Typos and Errors

KSPGetTotalIterations

Gets the total number of iterations this KSP object has performed since was created, counted over all linear solves

Synopsis

#include "petscksp.h" 
PetscErrorCode  KSPGetTotalIterations(KSP ksp,PetscInt *its)
Not Collective

Input Parameters

ksp -the iterative context

Output Parameters

its -total number of iterations

Notes

Use KSPGetIterationNumber() to get the count for the most recent solve only If this is called within a linear solve (such as in a KSPMonitor routine) then it does not include iterations within that current solve

See Also

KSPBuildResidual(), KSPGetResidualNorm(), KSPGetIterationNumber()

Level

intermediate

Location

src/ksp/ksp/interface/iterativ.c

Examples

src/ksp/ksp/examples/tutorials/ex10.c.html
src/ksp/ksp/examples/tutorials/ex100.c.html
src/snes/examples/tutorials/ex5.c.html

Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages