petsc-master 2017-04-26
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 PCFactorSetShiftType PCHYPREGetType
PCASMGetLocalType PCFactorSetUpMatSolverPackage PCHYPRESetAlphaPoissonMatrix
PCASMGetType PCFactorSetUseInPlace PCHYPRESetBetaPoissonMatrix
PCASMSetDMSubdomains PCFactorSetZeroPivot PCHYPRESetDiscreteCurl
PCASMSetLocalType PCFieldSplitGetDMSplits PCHYPRESetDiscreteGradient
PCASMSetOverlap PCFieldSplitGetDiagUseAmat PCHYPRESetEdgeConstantVectors
PCASMSetSortIndices PCFieldSplitGetIS PCHYPRESetType
PCASMSetType PCFieldSplitGetOffDiagUseAmat PCISSetSubdomainDiagonalScaling
PCBDDC PCFieldSplitGetSchurPre PCISSetSubdomainScalingFactor
PCBDDCGetDirichletBoundaries PCFieldSplitGetType PCISSetUseStiffnessScaling
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSchurFactType PCJacobiGetType
PCBDDCGetNeumannBoundaries PCFieldSplitSchurPreType PCJacobiGetUseAbs
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetBlockSize PCJacobiSetType
PCBDDCSetChangeOfBasisMat PCFieldSplitSetDMSplits PCJacobiSetUseAbs
PCBDDCSetCoarseningRatio PCFieldSplitSetDiagUseAmat PCJacobiType
PCBDDCSetDirichletBoundaries PCFieldSplitSetFields PCKSP
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetIS PCLSC
PCBDDCSetDofsSplitting PCFieldSplitSetOffDiagUseAmat PCLoad
PCBDDCSetDofsSplittingLocal PCFieldSplitSetSchurFactType PCMAT
PCBDDCSetLevels PCFieldSplitSetSchurPre PCML
PCBDDCSetLocalAdjacencyGraph PCFieldSplitSetType PCNN
PCBDDCSetNeumannBoundaries PCGALERKIN PCPARMS
PCBDDCSetNeumannBoundariesLocal PCGAMG PCPARMSGlobalType
PCBDDCSetPrimalVerticesIS PCGAMGASMSetUseAggs PCPARMSLocalType
PCBDDCSetPrimalVerticesLocalIS PCGAMGClassicalGetType PCPARMSSetFill
PCBJacobiGetLocalBlocks PCGAMGClassicalSetType PCPARMSSetGlobal
PCBJacobiGetTotalBlocks PCGAMGGetType PCPARMSSetLocal
PCBJacobiSetLocalBlocks PCGAMGSetCoarseEqLim PCPARMSSetNonsymPerm
PCBJacobiSetTotalBlocks PCGAMGSetNSmooths PCPARMSSetSolveRestart
PCCOMPOSITE PCGAMGSetNlevels PCPARMSSetSolveTolerances
PCCP PCGAMGSetProcEqLim PCPythonSetType
PCDiagonalScaleLeft PCGAMGSetRepartition PCREDISTRIBUTE
PCDiagonalScaleRight PCGAMGSetReuseInterpolation PCREDUNDANT
PCEisenstatGetNoDiagonalScaling PCGAMGSetSquareGraph PCSORGetIterations
PCEisenstatGetOmega PCGAMGSetSymGraph PCSORGetOmega
PCEisenstatSetNoDiagonalScaling PCGAMGSetThreshold PCSORGetSymmetric
PCEisenstatSetOmega PCGAMGSetType PCSORSetIterations
PCExoticSetType PCGAMGSetUseParallelCoarseGridSolve PCSORSetOmega
PCFIELDSPLIT PCGAMGType PCSORSetSymmetric
PCFactorGetAllowDiagonalFill PCGASMDestroySubdomains PCSPAISetBlockSize
PCFactorGetLevels PCGASMGetUseDMSubdomains PCSPAISetCacheSize
PCFactorGetMatSolverPackage PCGASMSetOverlap PCSPAISetEpsilon
PCFactorGetShiftAmount PCGASMSetSortIndices PCSPAISetMax
PCFactorGetShiftType PCGASMSetType PCSPAISetMaxNew
PCFactorGetUseInPlace PCGASMSetUseDMSubdomains PCSPAISetNBSteps
PCFactorGetZeroPivot PCGalerkinGetKSP PCSPAISetSp
PCFactorReorderForNonzeroDiagonal PCGalerkinSetComputeSubmatrix PCSPAISetVerbose
PCFactorSetAllowDiagonalFill PCGalerkinSetInterpolation PCSetApplicationContext
PCFactorSetColumnPivot PCGalerkinSetRestriction PCSetCoordinates
PCFactorSetFill PCGetApplicationContext PCSetDM
PCFactorSetLevels PCGetDM PCSetDiagonalScale
PCFactorSetMatOrderingType PCGetOperators PCSetOperators
PCFactorSetMatSolverPackage PCGetOperatorsSet PCSetReusePreconditioner
PCFactorSetPivotInBlocks PCGetReusePreconditioner PCSetType
PCFactorSetReuseFill PCGetType PCSetUseAmat
PCFactorSetReuseOrdering PCGetUseAmat
PCFactorSetShiftAmount PCHYPRE
Advanced - Setting more advanced options and customization
PCAINVCUSP PCFieldSplitSchurGetS PCRowScalingViennaCL
PCASMCreateSubdomains PCFieldSplitSchurRestoreS PCSACUSP
PCASMCreateSubdomains2D PCGAMGRegister PCSAViennaCL
PCASMDestroySubdomains PCGAMGSetThresholdScale PCSHELL
PCASMGetLocalSubdomains PCGASMCreateSubdomains PCSVD
PCASMGetLocalSubmatrices PCGASMCreateSubdomains2D PCSetErrorIfFailure
PCASMGetSubKSP PCGASMGetSubKSP PCSetModifySubMatrices
PCASMGetSubMatType PCGASMGetSubdomains PCSetOptionsPrefix
PCASMSetLocalSubdomains PCGASMGetSubmatrices PCShellGetContext
PCASMSetSubMatType PCGASMSetSubdomains PCShellSetContext
PCASMSetTotalSubdomains PCGetOptionsPrefix PCSysPFMG
PCAppendOptionsPrefix PCGetSetUpFailedReason PCTELESCOPE
PCBDDCSetDiscreteGradient PCKSPGetKSP PCTelescopeGetDM
PCBDDCSetDivergenceMat PCPFMG PCTelescopeGetIgnoreDM
PCBJacobiGetSubKSP PCRedistributeGetKSP PCTelescopeGetIgnoreKSPComputeOperators
PCCHOWILUViennaCL PCRedundantGetKSP PCTelescopeGetKSP
PCComputeExplicitOperator PCRedundantGetOperators PCTelescopeGetReductionFactor
PCEXOTIC PCRedundantSetNumber PCTelescopeGetSubcommType
PCFactorGetMatrix PCRedundantSetScatter PCTelescopeSetIgnoreDM
PCFieldSplitGetSchurBlocks PCRegister PCTelescopeSetIgnoreKSPComputeOperators
PCFieldSplitGetSubKSP PCRegisterAll PCTelescopeSetReductionFactor
PCFieldSplitRestrictIS PCRichardsonConvergedReason PCTelescopeSetSubcommType
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 PCGAMGFilterGraph PCShellSetApplySymmetricLeft
PCApplySymmetricRight PCGAMGFinalizePackage PCShellSetApplySymmetricRight
PCApplyTranspose PCGAMGInitializePackage PCShellSetApplyTranspose
PCApplyTransposeExists PCGetDiagonalScale 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