petsc-master 2016-07-29
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 PCFactorSetZeroPivot PCHYPRESetDiscreteGradient
PCASMGetLocalType PCFieldSplitGetDMSplits PCHYPRESetEdgeConstantVectors
PCASMGetType PCFieldSplitGetDiagUseAmat PCHYPRESetType
PCASMSetDMSubdomains PCFieldSplitGetIS PCISSetSubdomainDiagonalScaling
PCASMSetLocalType PCFieldSplitGetOffDiagUseAmat PCISSetSubdomainScalingFactor
PCASMSetOverlap PCFieldSplitGetSchurPre PCISSetUseStiffnessScaling
PCASMSetSortIndices PCFieldSplitGetType PCJacobiGetType
PCASMSetType PCFieldSplitSchurFactType PCJacobiGetUseAbs
PCBDDC PCFieldSplitSchurPreType PCJacobiSetType
PCBDDCGetDirichletBoundaries PCFieldSplitSetBlockSize PCJacobiSetUseAbs
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSetDMSplits PCJacobiType
PCBDDCGetNeumannBoundaries PCFieldSplitSetDiagUseAmat PCKSP
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetFields PCLSC
PCBDDCSetChangeOfBasisMat PCFieldSplitSetIS PCLoad
PCBDDCSetCoarseningRatio PCFieldSplitSetOffDiagUseAmat PCMAT
PCBDDCSetDirichletBoundaries PCFieldSplitSetSchurFactType PCMG
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetSchurPre PCMGGetGalerkin
PCBDDCSetDofsSplitting PCFieldSplitSetType PCMGSetGalerkin
PCBDDCSetDofsSplittingLocal PCGALERKIN PCMGSetLevels
PCBDDCSetLevels PCGAMG PCML
PCBDDCSetLocalAdjacencyGraph PCGAMGClassicalGetType PCNN
PCBDDCSetNeumannBoundaries PCGAMGClassicalSetType PCPARMS
PCBDDCSetNeumannBoundariesLocal 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
PCFactorSetUseInPlace PCHYPRESetDiscreteCurl
Advanced - Setting more advanced options and customization
PCAINVCUSP PCGetSetUpFailedReason PCRedundantGetOperators
PCASMCreateSubdomains PCKSPGetKSP PCRedundantSetNumber
PCASMCreateSubdomains2D PCMGGetCoarseSolve PCRedundantSetScatter
PCASMDestroySubdomains PCMGGetInterpolation PCRegister
PCASMGetLocalSubdomains PCMGGetLevels PCRegisterAll
PCASMGetLocalSubmatrices PCMGGetRScale PCRichardsonConvergedReason
PCASMGetSubKSP PCMGGetRestriction PCSACUSP
PCASMSetLocalSubdomains PCMGGetSmoother PCSHELL
PCASMSetTotalSubdomains PCMGGetSmootherDown PCSVD
PCAppendOptionsPrefix PCMGGetSmootherUp PCSetErrorIfFailure
PCBJacobiGetSubKSP PCMGGetType PCSetModifySubMatrices
PCComputeExplicitOperator PCMGMultiplicativeSetCycles PCSetOptionsPrefix
PCEXOTIC PCMGSetCycleType PCShellGetContext
PCFactorGetMatrix PCMGSetCyclesOnLevel PCShellSetContext
PCFieldSplitGetSchurBlocks PCMGSetInterpolation PCSysPFMG
PCFieldSplitGetSubKSP PCMGSetNumberSmoothDown PCTELESCOPE
PCFieldSplitRestrictIS PCMGSetNumberSmoothUp PCTelescopeGetDM
PCFieldSplitSchurGetS PCMGSetR PCTelescopeGetIgnoreDM
PCFieldSplitSchurRestoreS PCMGSetRScale PCTelescopeGetIgnoreKSPComputeOperators
PCGAMGRegister PCMGSetResidual PCTelescopeGetKSP
PCGASMCreateSubdomains PCMGSetRestriction PCTelescopeGetReductionFactor
PCGASMCreateSubdomains2D PCMGSetRhs PCTelescopeGetSubcommType
PCGASMGetSubKSP PCMGSetType PCTelescopeSetIgnoreDM
PCGASMGetSubdomains PCMGSetX PCTelescopeSetIgnoreKSPComputeOperators
PCGASMGetSubmatrices PCPFMG PCTelescopeSetReductionFactor
PCGASMSetSubdomains PCRedistributeGetKSP PCTelescopeSetSubcommType
PCGetOptionsPrefix PCRedundantGetKSP
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