KSPGetResidualHistory
Gets the array used to hold the residual history and the number of residuals it contains.
Synopsis
int KSPGetResidualHistory(KSP ksp, double **a, int *na)
Not Collective
Input Parameter
ksp -iterative context obtained from KSPCreate()
Output Parameters
a | - pointer to array to hold history (or PETSC_NULL)
|
na | - number of used entries in a (or PETSC_NULL)
|
Notes
Can only call after a KSPSetResidualHistory() otherwise returns 0.
The Fortran version of this routine has a calling sequence
call KSPGetResidualHistory(KSP ksp, integer na, integer ierr)
Keywords
KSP, get, 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