petsc-3.4.2 2013-07-02

# KSPSetPCSide

Sets the preconditioning side.

### Synopsis

    #include "petscksp.h"
    PetscErrorCode  KSPSetPCSide(KSP ksp,PCSide side)

Logically 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_pc_side <right,left,symmetric> - Notes: Left preconditioning is used by default for most Krylov methods except KSPFGMRES which only supports right preconditioning. Symmetric preconditioning is currently available only for the KSPQCG method. Note, however, that symmetric preconditioning can be emulated by using either right or left preconditioning and a pre or post processing step.

### Keywords

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

### See Also

KSPGetPCSide()

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