petsc-master 2018-01-17
Report Typos and Errors

PCCreate

Creates a preconditioner context.

Synopsis

#include "petscksp.h" 
PetscErrorCode  PCCreate(MPI_Comm comm,PC *newpc)
Collective on MPI_Comm

Input Parameter

comm -MPI communicator

Output Parameter

pc -location to put the preconditioner context

Notes

The default preconditioner for sparse matrices is PCILU or PCICC with 0 fill on one process and block Jacobi with PCILU or ICC in parallel. For dense matrices it is always PCNONE.

Keywords

PC, create, context

See Also

PCSetUp(), PCApply(), PCDestroy()

Level:developer
Location:
src/ksp/pc/interface/precon.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex21f.F.html

Implementations

PCCreate_AINVCUSP in src/ksp/pc/impls/ainvcusp/ainvcusp.c
PCCreate_ASM in src/ksp/pc/impls/asm/asm.c
PCCreate_BDDC in src/ksp/pc/impls/bddc/bddc.c
PCCreate_BiCGStabCUSP in src/ksp/pc/impls/bicgstabcusp/bicgstabcusp.c
PCCreate_BJacobi in src/ksp/pc/impls/bjacobi/bjacobi.c
PCCreate_CHOWILUVIENNACL in src/ksp/pc/impls/chowiluviennacl/chowiluviennacl.c
PCCreate_Composite in src/ksp/pc/impls/composite/composite.c
PCCreate_CP in src/ksp/pc/impls/cp/cp.c
PCCreate_Eisenstat in src/ksp/pc/impls/eisens/eisen.c
PCCreate_Cholesky in src/ksp/pc/impls/factor/cholesky/cholesky.c
PCCreate_ICC in src/ksp/pc/impls/factor/icc/icc.c
PCCreate_ILU in src/ksp/pc/impls/factor/ilu/ilu.c
PCCreate_LU in src/ksp/pc/impls/factor/lu/lu.c
PCCreate_FieldSplit in src/ksp/pc/impls/fieldsplit/fieldsplit.c
PCCreate_Galerkin in src/ksp/pc/impls/galerkin/galerkin.c
PCCreate_GAMG in src/ksp/pc/impls/gamg/gamg.c
PCCreate_GASM in src/ksp/pc/impls/gasm/gasm.c
PCCreate_HYPRE in src/ksp/pc/impls/hypre/hypre.c
PCCreate_PFMG in src/ksp/pc/impls/hypre/hypre.c
PCCreate_SysPFMG in src/ksp/pc/impls/hypre/hypre.c
PCCreate_NN in src/ksp/pc/impls/is/nn/nn.c
PCCreate_Jacobi in src/ksp/pc/impls/jacobi/jacobi.c
PCCreate_Kaczmarz in src/ksp/pc/impls/kaczmarz/kaczmarz.c
PCCreate_KSP in src/ksp/pc/impls/ksp/pcksp.c
PCCreate_LSC in src/ksp/pc/impls/lsc/lsc.c
PCCreate_Mat in src/ksp/pc/impls/mat/pcmat.c
PCCreate_MG in src/ksp/pc/impls/mg/mg.c
PCCreate_ML in src/ksp/pc/impls/ml/ml.c
PCCreate_None in src/ksp/pc/impls/none/none.c
PCCreate_PARMS in src/ksp/pc/impls/parms/parms.c
PCCreate_PBJacobi in src/ksp/pc/impls/pbjacobi/pbjacobi.c
PCCreate_Redistribute in src/ksp/pc/impls/redistribute/redistribute.c
PCCreate_Redundant in src/ksp/pc/impls/redundant/redundant.c
PCCreate_ROWSCALINGVIENNACL in src/ksp/pc/impls/rowscalingviennacl/rowscalingviennacl.c
PCCreate_SACUSP in src/ksp/pc/impls/sacusp/sacusp.c
PCCreate_SACUSPPoly in src/ksp/pc/impls/sacusp/sacusppoly.c
PCCreate_SAVIENNACL in src/ksp/pc/impls/saviennacl/saviennacl.c
PCCreate_Shell in src/ksp/pc/impls/shell/shellpc.c
PCCreate_SOR in src/ksp/pc/impls/sor/sor.c
PCCreate_SPAI in src/ksp/pc/impls/spai/ispai.c
PCCreate_SVD in src/ksp/pc/impls/svd/svd.c
PCCreate_Telescope in src/ksp/pc/impls/telescope/telescope.c
PCCreate_TFS in src/ksp/pc/impls/tfs/tfs.c
PCCreate_Exotic in src/ksp/pc/impls/wb/wb.c