petsc-3.4.4 2014-03-13

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
PC PCGASM PCNONE
PCASM PCGASMType PCPBJACOBI
PCASMType PCICC PCSOR
PCBJACOBI PCILU PCSPAI
PCCHOLESKY PCJACOBI PCSUPPORTGRAPH
PCCompositeType PCLU PCSide
PCEISENSTAT PCMGCycleType PCTFS
PCExoticType PCMGType PCType
Intermediate - Setting options for algorithms and data structures
PCASMGetDMSubdomains PCFieldSplitGetIS PCISSetUseStiffnessScaling
PCASMSetDMSubdomains PCFieldSplitGetType PCJacobiSetUseAbs
PCASMSetOverlap PCFieldSplitSchurFactType PCJacobiSetUseRowMax
PCASMSetSortIndices PCFieldSplitSchurPreType PCJacobiSetUseRowSum
PCASMSetType PCFieldSplitSchurPrecondition PCKSP
PCBDDC PCFieldSplitSetBlockSize PCLSC
PCBDDCGetDirichletBoundaries PCFieldSplitSetDMSplits PCLoad
PCBDDCGetNeumannBoundaries PCFieldSplitSetFields PCMAT
PCBDDCSetCoarseProblemType PCFieldSplitSetIS PCMG
PCBDDCSetCoarseningRatio PCFieldSplitSetSchurFactType PCMGGetGalerkin
PCBDDCSetDirichletBoundaries PCFieldSplitSetType PCMGSetGalerkin
PCBDDCSetDofsSplitting PCGALERKIN PCMGSetLevels
PCBDDCSetLocalAdjacencyGraph PCGAMG PCML
PCBDDCSetMaxLevels PCGAMGSetCoarseEqLim PCNN
PCBDDCSetNeumannBoundaries PCGAMGSetNSmooths PCPARMS
PCBDDCSetNullSpace PCGAMGSetNlevels PCPARMSGlobalType
PCBJacobiGetLocalBlocks PCGAMGSetProcEqLim PCPARMSLocalType
PCBJacobiGetTotalBlocks PCGAMGSetRepartitioning PCPARMSSetFill
PCBJacobiSetLocalBlocks PCGAMGSetReuseProl PCPARMSSetGlobal
PCBJacobiSetTotalBlocks PCGAMGSetSquareGraph PCPARMSSetLocal
PCCOMPOSITE PCGAMGSetSymGraph PCPARMSSetNonsymPerm
PCCP PCGAMGSetThreshold PCPARMSSetSolveRestart
PCDiagonalScaleLeft PCGAMGSetType PCPARMSSetSolveTolerances
PCDiagonalScaleRight PCGAMGSetUseASMAggs PCPythonSetType
PCEisenstatNoDiagonalScaling PCGAMGType PCREDISTRIBUTE
PCEisenstatSetOmega PCGASMDestroySubdomains PCREDUNDANT
PCExoticSetType PCGASMGetDMSubdomains PCSORSetIterations
PCFIELDSPLIT PCGASMSetDMSubdomains PCSORSetOmega
PCFactorGetLevels PCGASMSetOverlap PCSORSetSymmetric
PCFactorGetMatSolverPackage PCGASMSetSortIndices PCSPAISetBlockSize
PCFactorReorderForNonzeroDiagonal PCGASMSetType PCSPAISetCacheSize
PCFactorSetAllowDiagonalFill PCGalerkinGetKSP PCSPAISetEpsilon
PCFactorSetColumnPivot PCGalerkinSetInterpolation PCSPAISetMax
PCFactorSetFill PCGalerkinSetRestriction PCSPAISetMaxNew
PCFactorSetLevels PCGetApplicationContext PCSPAISetNBSteps
PCFactorSetMatOrderingType PCGetDM PCSPAISetSp
PCFactorSetMatSolverPackage PCGetOperators PCSPAISetVerbose
PCFactorSetPivotInBlocks PCGetOperatorsSet PCSetApplicationContext
PCFactorSetReuseFill PCGetType PCSetCoordinates
PCFactorSetReuseOrdering PCGetUseAmat PCSetDM
PCFactorSetShiftAmount PCHMPI PCSetDiagonalScale
PCFactorSetShiftType PCHYPRE PCSetOperators
PCFactorSetUpMatSolverPackage PCHYPREGetType PCSetType
PCFactorSetUseInPlace PCHYPRESetType PCSetUseAmat
PCFactorSetZeroPivot PCISSetSubdomainDiagonalScaling
PCFieldSplitGetDMSplits PCISSetSubdomainScalingFactor
Advanced - Setting more advanced options and customization
PCAINVCUSP PCGASMSetSubdomains PCMGSetRhs
PCASASetTolerances PCGASMSetTotalSubdomains PCMGSetType
PCASMCreateSubdomains PCGetOptionsPrefix PCMGSetX
PCASMCreateSubdomains2D PCKSPGetKSP PCPFMG
PCASMDestroySubdomains PCMGGetCoarseSolve PCRedistributeGetKSP
PCASMGetLocalSubdomains PCMGGetInterpolation PCRedundantGetKSP
PCASMGetLocalSubmatrices PCMGGetLevels PCRedundantGetOperators
PCASMGetSubKSP PCMGGetRScale PCRedundantSetNumber
PCASMSetLocalSubdomains PCMGGetRestriction PCRedundantSetScatter
PCASMSetTotalSubdomains PCMGGetSmoother PCRegister
PCAppendOptionsPrefix PCMGGetSmootherDown PCRegisterAll
PCBJacobiGetSubKSP PCMGGetSmootherUp PCRichardsonConvergedReason
PCComputeExplicitOperator PCMGMultiplicativeSetCycles PCSACUSP
PCEXOTIC PCMGSetCycleType PCSHELL
PCFactorGetMatrix PCMGSetCyclesOnLevel PCSVD
PCFieldSplitGetSchurBlocks PCMGSetInterpolation PCSetModifySubMatrices
PCFieldSplitGetSubKSP PCMGSetNumberSmoothDown PCSetOptionsPrefix
PCGASMCreateLocalSubdomains PCMGSetNumberSmoothUp PCShellGetContext
PCGASMCreateSubdomains2D PCMGSetR PCShellSetContext
PCGASMGetSubKSP PCMGSetRScale PCSysPFMG
PCGASMGetSubdomains PCMGSetResidual
PCGASMGetSubmatrices PCMGSetRestriction
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PCApply PCCompositeSetType PCSetUp
PCApplyBAorAB PCCompositeSpecialSetAlpha PCSetUpOnBlocks
PCApplyBAorABTranspose PCCreate PCShellGetName
PCApplyRichardson PCDestroy PCShellSetApply
PCApplyRichardsonExists PCGAMGFinalizePackage PCShellSetApplyBA
PCApplySymmetricLeft PCGAMGInitializePackage PCShellSetApplyRichardson
PCApplySymmetricRight PCGetDiagonalScale PCShellSetApplyTranspose
PCApplyTranspose PCMGResidual_Default PCShellSetDestroy
PCApplyTransposeExists PCModifySubMatrices PCShellSetName
PCBDDCCreateFETIDPOperators PCPostSolve PCShellSetPostSolve
PCBDDCMatFETIDPGetRHS PCPreSolve PCShellSetPreSolve
PCBDDCMatFETIDPGetSolution PCReset PCShellSetSetUp
PCCompositeAddPC PCSetFromOptions PCShellSetView
PCCompositeGetPC PCSetInitialGuessNonzero PCView
No deprecated routines

Table of Contents