PCSetFromOptions#

Sets PC options from the options database.

Synopsis#

#include "petscpc.h" 
PetscErrorCode PCSetFromOptions(PC pc)

Collective

Input Parameter#

  • pc - the preconditioner context

Options Database Key#

  • -pc_type - name of type, for example bjacobi

Notes#

This routine must be called before PCSetUp() if the user is to be allowed to set the preconditioner method from the options database.

This is called from KSPSetFromOptions() so rarely needs to be called directly

See Also#

KSP: Linear System Solvers, PC, PCSetType(), PCType, KSPSetFromOptions()

Level#

advanced

Location#

src/ksp/pc/interface/pcset.c

Examples#

src/ksp/ksp/tutorials/ex76.c
src/ksp/ksp/tutorials/ex87.c

Implementations#

PCSetFromOptions_AMGX() in src/ksp/pc/impls/amgx/amgx.cxx
PCSetFromOptions_ASM() in src/ksp/pc/impls/asm/asm.c
PCSetFromOptions_BDDC() in src/ksp/pc/impls/bddc/bddc.c
PCSetFromOptions_BJacobi() in src/ksp/pc/impls/bjacobi/bjacobi.c
PCSetFromOptions_BJKOKKOS() in src/ksp/pc/impls/bjacobi/bjkokkos/bjkokkos.kokkos.cxx
PCSetFromOptions_CHOWILUVIENNACL() in src/ksp/pc/impls/chowiluviennacl/chowiluviennacl.cxx
PCSetFromOptions_Composite() in src/ksp/pc/impls/composite/composite.c
PCSetFromOptions_CP() in src/ksp/pc/impls/cp/cp.c
PCSetFromOptions_Deflation() in src/ksp/pc/impls/deflation/deflation.c
PCSetFromOptions_Eisenstat() in src/ksp/pc/impls/eisens/eisen.c
PCSetFromOptions_Cholesky() in src/ksp/pc/impls/factor/cholesky/cholesky.c
PCSetFromOptions_Factor() in src/ksp/pc/impls/factor/factimpl.c
PCSetFromOptions_ICC() in src/ksp/pc/impls/factor/icc/icc.c
PCSetFromOptions_ILU() in src/ksp/pc/impls/factor/ilu/ilu.c
PCSetFromOptions_LU() in src/ksp/pc/impls/factor/lu/lu.c
PCSetFromOptions_FieldSplit() in src/ksp/pc/impls/fieldsplit/fieldsplit.c
PCSetFromOptions_Galerkin() in src/ksp/pc/impls/galerkin/galerkin.c
PCSetFromOptions_GAMG() in src/ksp/pc/impls/gamg/gamg.c
PCSetFromOptions_GEO() in src/ksp/pc/impls/gamg/geo.c
PCSetFromOptions_GASM() in src/ksp/pc/impls/gasm/gasm.c
PCSetFromOptions_H2OPUS() in src/ksp/pc/impls/h2opus/pch2opus.c
PCSetFromOptions_HMG() in src/ksp/pc/impls/hmg/hmg.c
PCSetFromOptions_HPDDM() in src/ksp/pc/impls/hpddm/pchpddm.cxx
PCSetFromOptions_HYPRE() in src/ksp/pc/impls/hypre/hypre.c
PCSetFromOptions_PFMG() in src/ksp/pc/impls/hypre/hypre.c
PCSetFromOptions_SysPFMG() in src/ksp/pc/impls/hypre/hypre.c
PCSetFromOptions_SMG() in src/ksp/pc/impls/hypre/hypre.c
PCSetFromOptions_Jacobi() in src/ksp/pc/impls/jacobi/jacobi.c
PCSetFromOptions_Kaczmarz() in src/ksp/pc/impls/kaczmarz/kaczmarz.c
PCSetFromOptions_KSP() in src/ksp/pc/impls/ksp/pcksp.c
PCSetFromOptions_LMVM() in src/ksp/pc/impls/lmvm/lmvmpc.c
PCSetFromOptions_LSC() in src/ksp/pc/impls/lsc/lsc.c
PCSetFromOptions_MG() in src/ksp/pc/impls/mg/mg.c
PCSetFromOptions_ML() in src/ksp/pc/impls/ml/ml.c
PCSetFromOptions_MPI() in src/ksp/pc/impls/mpi/pcmpi.c
PCSetFromOptions_PARMS() in src/ksp/pc/impls/parms/parms.c
PCSetFromOptions_PATCH() in src/ksp/pc/impls/patch/pcpatch.c
PCSetFromOptions_Redistribute() in src/ksp/pc/impls/redistribute/redistribute.c
PCSetFromOptions_Redundant() in src/ksp/pc/impls/redundant/redundant.c
PCSetFromOptions_ROWSCALINGVIENNACL() in src/ksp/pc/impls/rowscalingviennacl/rowscalingviennacl.cxx
PCSetFromOptions_SAVIENNACL() in src/ksp/pc/impls/saviennacl/saviennacl.cxx
PCSetFromOptions_SOR() in src/ksp/pc/impls/sor/sor.c
PCSetFromOptions_SPAI() in src/ksp/pc/impls/spai/ispai.c
PCSetFromOptions_SVD() in src/ksp/pc/impls/svd/svd.c
PCSetFromOptions_Telescope() in src/ksp/pc/impls/telescope/telescope.c
PCSetFromOptions_TFS() in src/ksp/pc/impls/tfs/tfs.c
PCSetFromOptions_Exotic() in src/ksp/pc/impls/wb/wb.c


Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages