KSPSetAvoidNorms

Sets the KSP solver to avoid computing the residual norm when possible. This, for example, reduces the number of collective operations when using the Krylov method as a smoother.

Synopsis

#include "petscksp.h" 
int KSPSetAvoidNorms(KSP ksp,PetscTruth flg)
Collective on KSP

Input Parameter

ksp - Krylov solver context
flg - PETSC_TRUE or PETSC_FALSE

Notes

One cannot use the default convergence test routines when this option is set, since these are based on decreases in the residual norms. Thus, this option automatically switches to activate the KSPSkipConverged() test function.

Currently only works with the CG, Richardson, Bi-CG-stab, CR, and CGS methods.

Keywords

KSP, create, context, norms

See Also

KSPSetUp(), KSPSolve(), KSPDestroy(), KSPSkipConverged()

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