QPSSetResidualHistory
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
PetscErrorCode QPSSetResidualHistory(QPS qps,PetscReal a[],PetscInt na,PetscBool reset)
Not Collective
Input Parameters
| qps | - iterative context obtained from QPSCreate()
|
| 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
|
Notes
Array is NOT freed by PETSc so the user needs to keep track of
and destroy once the QPS object is destroyed.
'a' is NULL then space is allocated for the history.
If 'na' PETSC_DECIDE or PETSC_DEFAULT then an array of length 10000 is allocated.
Keywords
QPS, set, residual, history, norm
See Also
QPSGetResidualHistory()
Level
advanced
Location
src/qps/interface/qps.c
Index of all QPS routines
Table of Contents for all manual pages
Index of all manual pages