petsc-3.3-p7 2013-05-11

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

Table of Contents