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

int KSPSetAvoidNorms(KSP ksp)
Collective on KSP

Input Parameter

ksp -Krylov solver context

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
KSP Index
Table of Contents