KSPSetComputeResidual

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

Synopsis

#include "petscksp.h" 
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

Level:advanced
Location:
src/sles/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages