KSPSetComputeResidual

Sets a flag to indicate whether the two norm of the residual is calculated at each iteration.

Synopsis

int KSPSetComputeResidual(KSP ksp,PetscTruth flag)
Collective on KSP

Input Parameters

ksp - iterative context obtained from KSPCreate()
flag - PETSC_TRUE or PETSC_FALSE

Notes

Most Krylov methods do not yet take advantage of flag = PETSC_FALSE.

Keywords

KSP, set, residual, norm, calculate, flag

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