petsc-master 2015-04-17
Report Typos and Errors

Preconditioners - PC: Examples

The Scalable Linear Equations Solvers (KSP) component provides an easy-to-use interface to the combination of a Krylov subspace iterative method and a preconditioner (in the KSP and PC components, respectively) or a sequential direct solver. KSP users can set various preconditioning options at runtime via the options database (e.g., -pc_type jacobi ). KSP users can also set PC options directly in application codes by first extracting the PC context from the KSP context via KSPGetPC() and then directly calling the PC routines listed below (e.g., PCSetType() ). PC components can be used directly to create and destroy solvers; this is not needed for users but is for library developers.

Beginner - Basic usage
PCASM PCGASMType PCMGType
PCASMType PC PCNONE
PCBJACOBI PCICC PCPBJACOBI
PCCHOLESKY PCILU PCSide
PCCompositeType PCJACOBI PCSOR
PCEISENSTAT PCKaczmarz PCSPAI
PCExoticType PCLU PCTFS
PCGASM PCMGCycleType PCType
Intermediate - Setting options for algorithms and data structures
PCASMGetDMSubdomains PCFieldSplitGetDiagUseAmat PCHYPRESetEdgeConstantVectors
PCASMGetType PCFieldSplitGetDMSplits PCHYPRESetType
PCASMSetDMSubdomains PCFieldSplitGetIS PCISSetSubdomainDiagonalScaling
PCASMSetOverlap PCFieldSplitGetOffDiagUseAmat PCISSetSubdomainScalingFactor
PCASMSetSortIndices PCFieldSplitGetSchurPre PCISSetUseStiffnessScaling
PCASMSetType PCFieldSplitGetType PCJacobiGetType
PCBDDCGetDirichletBoundaries PCFIELDSPLIT PCJacobiGetUseAbs
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSchurFactType PCJacobiSetType
PCBDDCGetNeumannBoundaries PCFieldSplitSchurPreType PCJacobiSetUseAbs
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetBlockSize PCJacobiType
PCBDDC PCFieldSplitSetDiagUseAmat PCKSP
PCBDDCSetChangeOfBasisMat PCFieldSplitSetDMSplits PCLoad
PCBDDCSetCoarseningRatio PCFieldSplitSetFields PCLSC
PCBDDCSetDirichletBoundaries PCFieldSplitSetIS PCMAT
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetOffDiagUseAmat PCMGGetGalerkin
PCBDDCSetDofsSplitting PCFieldSplitSetSchurFactType PCMG
PCBDDCSetDofsSplittingLocal PCFieldSplitSetSchurPre PCMGSetGalerkin
PCBDDCSetLevels PCFieldSplitSetType PCMGSetLevels
PCBDDCSetLocalAdjacencyGraph PCGalerkinGetKSP PCML
PCBDDCSetNeumannBoundaries PCGALERKIN PCNN
PCBDDCSetNeumannBoundariesLocal PCGalerkinSetInterpolation PCPARMSGlobalType
PCBDDCSetNullSpace PCGalerkinSetRestriction PCPARMS
PCBDDCSetPrimalVerticesLocalIS PCGAMGClassicalGetType PCPARMSLocalType
PCBJacobiGetLocalBlocks PCGAMGClassicalSetType PCPARMSSetFill
PCBJacobiGetTotalBlocks PCGAMGGetType PCPARMSSetGlobal
PCBJacobiSetLocalBlocks PCGAMG PCPARMSSetLocal
PCBJacobiSetTotalBlocks PCGAMGSetCoarseEqLim PCPARMSSetNonsymPerm
PCCOMPOSITE PCGAMGSetNlevels PCPARMSSetSolveRestart
PCCP PCGAMGSetNSmooths PCPARMSSetSolveTolerances
PCDiagonalScaleLeft PCGAMGSetProcEqLim PCPythonSetType
PCDiagonalScaleRight PCGAMGSetRepartitioning PCREDISTRIBUTE
PCEisenstatGetNoDiagonalScaling PCGAMGSetReuseInterpolation PCREDUNDANT
PCEisenstatGetOmega PCGAMGSetSquareGraph PCSetApplicationContext
PCEisenstatSetNoDiagonalScaling PCGAMGSetSymGraph PCSetCoordinates
PCEisenstatSetOmega PCGAMGSetThreshold PCSetDiagonalScale
PCExoticSetType PCGAMGSetType PCSetDM
PCFactorGetAllowDiagonalFill PCGAMGSetUseASMAggs PCSetOperators
PCFactorGetLevels PCGAMGType PCSetReusePreconditioner
PCFactorGetMatSolverPackage PCGASMDestroySubdomains PCSetType
PCFactorGetUseInPlace PCGASMGetDMSubdomains PCSetUseAmat
PCFactorReorderForNonzeroDiagonal PCGASMSetDMSubdomains PCSORGetIterations
PCFactorSetAllowDiagonalFill PCGASMSetOverlap PCSORGetOmega
PCFactorSetColumnPivot PCGASMSetSortIndices PCSORGetSymmetric
PCFactorSetFill PCGASMSetType PCSORSetIterations
PCFactorSetLevels PCGetApplicationContext PCSORSetOmega
PCFactorSetMatOrderingType PCGetDM PCSORSetSymmetric
PCFactorSetMatSolverPackage PCGetOperators PCSPAISetBlockSize
PCFactorSetPivotInBlocks PCGetOperatorsSet PCSPAISetCacheSize
PCFactorSetReuseFill PCGetType PCSPAISetEpsilon
PCFactorSetReuseOrdering PCGetUseAmat PCSPAISetMax
PCFactorSetShiftAmount PCHYPREGetType PCSPAISetMaxNew
PCFactorSetShiftType PCHYPRE PCSPAISetNBSteps
PCFactorSetUpMatSolverPackage PCHYPRESetAlphaPoissonMatrix PCSPAISetSp
PCFactorSetUseInPlace PCHYPRESetBetaPoissonMatrix PCSPAISetVerbose
PCFactorSetZeroPivot PCHYPRESetDiscreteGradient
Advanced - Setting more advanced options and customization
PCAINVCUSP PCGASMGetSubmatrices PCMGSetR
PCAppendOptionsPrefix PCGASMSetSubdomains PCMGSetRScale
PCASMCreateSubdomains2D PCGASMSetTotalSubdomains PCMGSetType
PCASMCreateSubdomains PCGetOptionsPrefix PCMGSetX
PCASMDestroySubdomains PCKSPGetKSP PCPFMG
PCASMGetLocalSubdomains PCMGGetCoarseSolve PCRedistributeGetKSP
PCASMGetLocalSubmatrices PCMGGetInterpolation PCRedundantGetKSP
PCASMGetSubKSP PCMGGetLevels PCRedundantGetOperators
PCASMSetLocalSubdomains PCMGGetRestriction PCRedundantSetNumber
PCASMSetTotalSubdomains PCMGGetRScale PCRedundantSetScatter
PCBJacobiGetSubKSP PCMGGetSmootherDown PCRegisterAll
PCComputeExplicitOperator PCMGGetSmoother PCRegister
PCEXOTIC PCMGGetSmootherUp PCRichardsonConvergedReason
PCFactorGetMatrix PCMGGetType PCSACUSP
PCFieldSplitGetSchurBlocks PCMGMultiplicativeSetCycles PCSetModifySubMatrices
PCFieldSplitGetSubKSP PCMGSetCyclesOnLevel PCSetOptionsPrefix
PCFieldSplitSchurGetS PCMGSetCycleType PCShellGetContext
PCFieldSplitSchurRestoreS PCMGSetInterpolation PCSHELL
PCGAMGRegister PCMGSetNumberSmoothDown PCShellSetContext
PCGASMCreateLocalSubdomains PCMGSetNumberSmoothUp PCSVD
PCGASMCreateSubdomains2D PCMGSetResidual PCSysPFMG
PCGASMGetSubdomains PCMGSetRestriction
PCGASMGetSubKSP PCMGSetRhs
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PCApplyBAorAB PCCompositeSetType PCSetUp
PCApplyBAorABTranspose PCCompositeSpecialSetAlpha PCSetUpOnBlocks
PCApply PCCreate PCShellGetName
PCApplyRichardsonExists PCDestroy PCShellSetApplyBA
PCApplyRichardson PCGAMGFinalizePackage PCShellSetApply
PCApplySymmetricLeft PCGAMGInitializePackage PCShellSetApplyRichardson
PCApplySymmetricRight PCGetDiagonalScale PCShellSetApplyTranspose
PCApplyTransposeExists PCGetInitialGuessNonzero PCShellSetDestroy
PCApplyTranspose PCMGResidualDefault PCShellSetName
PCBDDCCreateFETIDPOperators PCModifySubMatrices PCShellSetPostSolve
PCBDDCMatFETIDPGetRHS PCPostSolve PCShellSetPreSolve
PCBDDCMatFETIDPGetSolution PCPreSolve PCShellSetSetUp
PCCompositeAddPC PCReset PCShellSetView
PCCompositeGetPC PCSetFromOptions PCView
PCCompositeGetType PCSetInitialGuessNonzero
No deprecated routines
None: Not yet cataloged
PCGetReusePreconditioner

Table of Contents