petsc-master 2016-08-24
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 PCMGalerkinType
PCASMType PCGASMType PCNONE
PCBJACOBI PCICC PCPBJACOBI
PCCHOLESKY PCILU PCSOR
PCCompositeType PCJACOBI PCSPAI
PCEISENSTAT PCKaczmarz PCSide
PCExoticType PCLU PCTFS
PCFailedReason PCMGCycleType PCType
Intermediate - Setting options for algorithms and data structures
PCASMGetDMSubdomains PCFactorSetZeroPivot PCHYPRESetDiscreteCurl
PCASMGetLocalType PCFieldSplitGetDMSplits PCHYPRESetDiscreteGradient
PCASMGetType PCFieldSplitGetDiagUseAmat PCHYPRESetEdgeConstantVectors
PCASMSetDMSubdomains PCFieldSplitGetIS PCHYPRESetType
PCASMSetLocalType PCFieldSplitGetOffDiagUseAmat PCISSetSubdomainDiagonalScaling
PCASMSetOverlap PCFieldSplitGetSchurPre PCISSetSubdomainScalingFactor
PCASMSetSortIndices PCFieldSplitGetType PCISSetUseStiffnessScaling
PCASMSetType PCFieldSplitSchurFactType PCJacobiGetType
PCBDDC PCFieldSplitSchurPreType PCJacobiGetUseAbs
PCBDDCGetDirichletBoundaries PCFieldSplitSetBlockSize PCJacobiSetType
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSetDMSplits PCJacobiSetUseAbs
PCBDDCGetNeumannBoundaries PCFieldSplitSetDiagUseAmat PCJacobiType
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetFields PCKSP
PCBDDCSetChangeOfBasisMat PCFieldSplitSetIS PCLSC
PCBDDCSetCoarseningRatio PCFieldSplitSetOffDiagUseAmat PCLoad
PCBDDCSetDirichletBoundaries PCFieldSplitSetSchurFactType PCMAT
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetSchurPre PCMG
PCBDDCSetDofsSplitting PCFieldSplitSetType PCMGGetGalerkin
PCBDDCSetDofsSplittingLocal PCGALERKIN PCMGSetGalerkin
PCBDDCSetLevels PCGAMG PCMGSetLevels
PCBDDCSetLocalAdjacencyGraph PCGAMGASMSetUseAggs PCML
PCBDDCSetNeumannBoundaries PCGAMGClassicalGetType PCNN
PCBDDCSetNeumannBoundariesLocal PCGAMGClassicalSetType PCPARMS
PCBDDCSetPrimalVerticesLocalIS PCGAMGGetType PCPARMSGlobalType
PCBJacobiGetLocalBlocks PCGAMGSetCoarseEqLim PCPARMSLocalType
PCBJacobiGetTotalBlocks PCGAMGSetNSmooths PCPARMSSetFill
PCBJacobiSetLocalBlocks PCGAMGSetNlevels PCPARMSSetGlobal
PCBJacobiSetTotalBlocks PCGAMGSetProcEqLim PCPARMSSetLocal
PCCOMPOSITE PCGAMGSetRepartition PCPARMSSetNonsymPerm
PCCP PCGAMGSetReuseInterpolation PCPARMSSetSolveRestart
PCDiagonalScaleLeft PCGAMGSetSquareGraph PCPARMSSetSolveTolerances
PCDiagonalScaleRight PCGAMGSetSymGraph PCPythonSetType
PCEisenstatGetNoDiagonalScaling PCGAMGSetThreshold PCREDISTRIBUTE
PCEisenstatGetOmega PCGAMGSetType PCREDUNDANT
PCEisenstatSetNoDiagonalScaling PCGAMGSetUseParallelCoarseGridSolve PCSORGetIterations
PCEisenstatSetOmega PCGAMGType PCSORGetOmega
PCExoticSetType PCGASMDestroySubdomains PCSORGetSymmetric
PCFIELDSPLIT PCGASMGetUseDMSubdomains PCSORSetIterations
PCFactorGetAllowDiagonalFill PCGASMSetOverlap PCSORSetOmega
PCFactorGetLevels PCGASMSetSortIndices PCSORSetSymmetric
PCFactorGetMatSolverPackage PCGASMSetType PCSPAISetBlockSize
PCFactorGetUseInPlace PCGASMSetUseDMSubdomains PCSPAISetCacheSize
PCFactorReorderForNonzeroDiagonal PCGalerkinGetKSP PCSPAISetEpsilon
PCFactorSetAllowDiagonalFill PCGalerkinSetInterpolation PCSPAISetMax
PCFactorSetColumnPivot PCGalerkinSetRestriction PCSPAISetMaxNew
PCFactorSetFill PCGetApplicationContext PCSPAISetNBSteps
PCFactorSetLevels PCGetDM PCSPAISetSp
PCFactorSetMatOrderingType PCGetOperators PCSPAISetVerbose
PCFactorSetMatSolverPackage PCGetOperatorsSet PCSetApplicationContext
PCFactorSetPivotInBlocks PCGetReusePreconditioner PCSetCoordinates
PCFactorSetReuseFill PCGetType PCSetDM
PCFactorSetReuseOrdering PCGetUseAmat PCSetDiagonalScale
PCFactorSetShiftAmount PCHYPRE PCSetOperators
PCFactorSetShiftType PCHYPREGetType PCSetReusePreconditioner
PCFactorSetUpMatSolverPackage PCHYPRESetAlphaPoissonMatrix PCSetType
PCFactorSetUseInPlace PCHYPRESetBetaPoissonMatrix PCSetUseAmat
Advanced - Setting more advanced options and customization
PCAINVCUSP PCGetOptionsPrefix PCRedundantGetKSP
PCASMCreateSubdomains PCGetSetUpFailedReason PCRedundantGetOperators
PCASMCreateSubdomains2D PCKSPGetKSP PCRedundantSetNumber
PCASMDestroySubdomains PCMGGetCoarseSolve PCRedundantSetScatter
PCASMGetLocalSubdomains PCMGGetInterpolation PCRegister
PCASMGetLocalSubmatrices PCMGGetLevels PCRegisterAll
PCASMGetSubKSP PCMGGetRScale PCRichardsonConvergedReason
PCASMGetSubMatType PCMGGetRestriction PCSACUSP
PCASMSetLocalSubdomains PCMGGetSmoother PCSHELL
PCASMSetSubMatType PCMGGetSmootherDown PCSVD
PCASMSetTotalSubdomains PCMGGetSmootherUp PCSetErrorIfFailure
PCAppendOptionsPrefix PCMGGetType PCSetModifySubMatrices
PCBJacobiGetSubKSP PCMGMultiplicativeSetCycles PCSetOptionsPrefix
PCComputeExplicitOperator PCMGSetCycleType PCShellGetContext
PCEXOTIC PCMGSetCyclesOnLevel PCShellSetContext
PCFactorGetMatrix PCMGSetInterpolation PCSysPFMG
PCFieldSplitGetSchurBlocks PCMGSetNumberSmooth PCTELESCOPE
PCFieldSplitGetSubKSP PCMGSetNumberSmoothDown PCTelescopeGetDM
PCFieldSplitRestrictIS PCMGSetNumberSmoothUp PCTelescopeGetIgnoreDM
PCFieldSplitSchurGetS PCMGSetR PCTelescopeGetIgnoreKSPComputeOperators
PCFieldSplitSchurRestoreS PCMGSetRScale PCTelescopeGetKSP
PCGAMGRegister PCMGSetResidual PCTelescopeGetReductionFactor
PCGASMCreateSubdomains PCMGSetRestriction PCTelescopeGetSubcommType
PCGASMCreateSubdomains2D PCMGSetRhs PCTelescopeSetIgnoreDM
PCGASMGetSubKSP PCMGSetType PCTelescopeSetIgnoreKSPComputeOperators
PCGASMGetSubdomains PCMGSetX PCTelescopeSetReductionFactor
PCGASMGetSubmatrices PCPFMG PCTelescopeSetSubcommType
PCGASMSetSubdomains PCRedistributeGetKSP
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