KSPSetResidualHistory

Sets the array used to hold the residual history. If set, this array will contain the residual norms computed at each iteration of the solver.

Synopsis

#include "ksp.h" 
int KSPSetResidualHistory(KSP ksp,PetscReal *a,int na,PetscTruth reset)
Not Collective

Input Parameters

ksp - iterative context obtained from KSPCreate()
a - array to hold history
na - size of a
reset - PETSC_TRUE indicates the history counter is reset to zero for each new linear solve

Keywords

KSP, set, residual, history, norm

See Also

KSPGetResidualHistory()

Examples

src/snes/examples/tutorials/ex6.c

Level:advanced
Location:src/sles/ksp/interface/itfunc.c
KSP Index
Table of Contents