petsc-3.7.3 2016-08-01
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 PCGASM PCMGType
PCASM PCGASMSetTotalSubdomains PCNONE
PCASMType PCGASMType PCPBJACOBI
PCBJACOBI PCICC PCSOR
PCCHOLESKY PCILU PCSPAI
PCCompositeType PCJACOBI PCSide
PCEISENSTAT PCKaczmarz PCTFS
PCExoticType PCLU PCType
PCFailedReason PCMGCycleType
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 PCGetOptionsPrefix PCRedistributeGetKSP
PCASMCreateSubdomains PCGetSetUpFailedReason PCRedundantGetKSP
PCASMCreateSubdomains2D PCKSPGetKSP PCRedundantGetOperators
PCASMDestroySubdomains PCMGGetCoarseSolve PCRedundantSetNumber
PCASMGetLocalSubdomains PCMGGetInterpolation PCRedundantSetScatter
PCASMGetLocalSubmatrices PCMGGetLevels PCRegister
PCASMGetSubKSP PCMGGetRScale PCRegisterAll
PCASMSetLocalSubdomains PCMGGetRestriction PCRichardsonConvergedReason
PCASMSetTotalSubdomains PCMGGetSmoother PCSACUSP
PCAppendOptionsPrefix PCMGGetSmootherDown PCSHELL
PCBJacobiGetSubKSP PCMGGetSmootherUp PCSVD
PCComputeExplicitOperator PCMGGetType PCSetErrorIfFailure
PCEXOTIC PCMGMultiplicativeSetCycles PCSetModifySubMatrices
PCFactorGetMatrix PCMGSetCycleType PCSetOptionsPrefix
PCFieldSplitGetSchurBlocks PCMGSetCyclesOnLevel PCShellGetContext
PCFieldSplitGetSubKSP PCMGSetInterpolation PCShellSetContext
PCFieldSplitRestrictIS PCMGSetNumberSmoothDown PCSysPFMG
PCFieldSplitSchurGetS PCMGSetNumberSmoothUp PCTELESCOPE
PCFieldSplitSchurRestoreS PCMGSetR PCTelescopeGetDM
PCGAMGRegister PCMGSetRScale PCTelescopeGetIgnoreDM
PCGASMCreateSubdomains PCMGSetResidual PCTelescopeGetIgnoreKSPComputeOperators
PCGASMCreateSubdomains2D PCMGSetRestriction PCTelescopeGetKSP
PCGASMGetSubKSP PCMGSetRhs PCTelescopeGetReductionFactor
PCGASMGetSubdomains PCMGSetType PCTelescopeSetIgnoreDM
PCGASMGetSubmatrices PCMGSetX PCTelescopeSetIgnoreKSPComputeOperators
PCGASMSetSubdomains PCPFMG PCTelescopeSetReductionFactor
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PCApply PCCompositeGetType PCSetUpOnBlocks
PCApplyBAorAB PCCompositeSetType PCShellGetName
PCApplyBAorABTranspose PCCompositeSpecialSetAlpha PCShellSetApply
PCApplyRichardson PCCreate PCShellSetApplyBA
PCApplyRichardsonExists PCDestroy PCShellSetApplyRichardson
PCApplySymmetricLeft PCGAMGFinalizePackage PCShellSetApplySymmetricLeft
PCApplySymmetricRight PCGAMGInitializePackage PCShellSetApplySymmetricRight
PCApplyTranspose PCGetDiagonalScale PCShellSetApplyTranspose
PCApplyTransposeExists PCMGResidualDefault PCShellSetDestroy
PCBDDCCreateFETIDPOperators PCModifySubMatrices PCShellSetName
PCBDDCMatFETIDPGetRHS PCPostSolve PCShellSetPostSolve
PCBDDCMatFETIDPGetSolution PCPreSolve PCShellSetPreSolve
PCCompositeAddPC PCReset PCShellSetSetUp
PCCompositeGetNumberPC PCSetFromOptions PCShellSetView
PCCompositeGetPC PCSetUp PCView
No deprecated routines

Table of Contents