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

Table of Contents