KSPSetPreconditionerSide

Sets the preconditioning side.

Synopsis

int KSPSetPreconditionerSide(KSP ksp,PCSide side)
Collective on KSP

Input Parameter

ksp -iterative context obtained from KSPCreate()

Output Parameter

side -the preconditioning side, where side is one of
      PC_LEFT - left preconditioning (default)
      PC_RIGHT - right preconditioning
      PC_SYMMETRIC - symmetric preconditioning

Options Database Keys

-ksp_left_pc - Sets left preconditioning
-ksp_right_pc - Sets right preconditioning
-ksp_symmetric_pc - Sets symmetric preconditioning

Notes

Left preconditioning is used by default. Symmetric preconditioning iscurrently available only for the KSPQCG method. Note, however, thatsymmetric preconditioning can be emulated by using either right or leftpreconditioning and a pre or post processing step.

Keywords

KSP, set, right, left, symmetric, side, preconditioner, flag

See Also

KSPGetPreconditionerSide()

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