petsc-master 2017-11-16
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 PCHYPRE
PCASMGetLocalType PCFactorSetUpMatSolverPackage PCHYPREGetType
PCASMGetType PCFactorSetUseInPlace PCHYPRESetAlphaPoissonMatrix
PCASMSetDMSubdomains PCFactorSetZeroPivot PCHYPRESetBetaPoissonMatrix
PCASMSetLocalType PCFieldSplitGetDMSplits PCHYPRESetDiscreteCurl
PCASMSetOverlap PCFieldSplitGetDiagUseAmat PCHYPRESetDiscreteGradient
PCASMSetSortIndices PCFieldSplitGetIS PCHYPRESetEdgeConstantVectors
PCASMSetType PCFieldSplitGetOffDiagUseAmat PCHYPRESetInterpolations
PCBDDC PCFieldSplitGetSchurPre PCHYPRESetType
PCBDDCGetDirichletBoundaries PCFieldSplitGetType PCISSetSubdomainDiagonalScaling
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSchurFactType PCISSetSubdomainScalingFactor
PCBDDCGetNeumannBoundaries PCFieldSplitSchurPreType PCISSetUseStiffnessScaling
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetBlockSize PCJacobiGetType
PCBDDCSetChangeOfBasisMat PCFieldSplitSetDMSplits PCJacobiGetUseAbs
PCBDDCSetCoarseningRatio PCFieldSplitSetDiagUseAmat PCJacobiSetType
PCBDDCSetDirichletBoundaries PCFieldSplitSetFields PCJacobiSetUseAbs
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetIS PCJacobiType
PCBDDCSetDofsSplitting PCFieldSplitSetOffDiagUseAmat PCKSP
PCBDDCSetDofsSplittingLocal PCFieldSplitSetSchurFactType PCLSC
PCBDDCSetLevels PCFieldSplitSetSchurPre PCLoad
PCBDDCSetLocalAdjacencyGraph PCFieldSplitSetSchurScale PCMAT
PCBDDCSetNeumannBoundaries PCFieldSplitSetType PCML
PCBDDCSetNeumannBoundariesLocal PCGALERKIN PCNN
PCBDDCSetPrimalVerticesIS PCGAMG PCPARMS
PCBDDCSetPrimalVerticesLocalIS PCGAMGASMSetUseAggs PCPARMSGlobalType
PCBJacobiGetLocalBlocks PCGAMGClassicalGetType PCPARMSLocalType
PCBJacobiGetTotalBlocks PCGAMGClassicalSetType PCPARMSSetFill
PCBJacobiSetLocalBlocks PCGAMGGetType PCPARMSSetGlobal
PCBJacobiSetTotalBlocks PCGAMGSetCoarseEqLim PCPARMSSetLocal
PCCOMPOSITE PCGAMGSetNSmooths PCPARMSSetNonsymPerm
PCCP PCGAMGSetNlevels PCPARMSSetSolveRestart
PCDiagonalScaleLeft PCGAMGSetProcEqLim PCPARMSSetSolveTolerances
PCDiagonalScaleRight PCGAMGSetRepartition PCPythonSetType
PCEisenstatGetNoDiagonalScaling PCGAMGSetReuseInterpolation PCREDISTRIBUTE
PCEisenstatGetOmega PCGAMGSetSquareGraph PCREDUNDANT
PCEisenstatSetNoDiagonalScaling PCGAMGSetSymGraph PCSORGetIterations
PCEisenstatSetOmega PCGAMGSetThreshold PCSORGetOmega
PCExoticSetType PCGAMGSetType PCSORGetSymmetric
PCFIELDSPLIT PCGAMGSetUseParallelCoarseGridSolve PCSORSetIterations
PCFactorGetAllowDiagonalFill PCGAMGType PCSORSetOmega
PCFactorGetLevels PCGASMDestroySubdomains PCSORSetSymmetric
PCFactorGetMatSolverPackage PCGASMGetUseDMSubdomains PCSPAISetBlockSize
PCFactorGetShiftAmount PCGASMSetOverlap PCSPAISetCacheSize
PCFactorGetShiftType PCGASMSetSortIndices PCSPAISetEpsilon
PCFactorGetUseInPlace PCGASMSetType PCSPAISetMax
PCFactorGetZeroPivot PCGASMSetUseDMSubdomains PCSPAISetMaxNew
PCFactorReorderForNonzeroDiagonal PCGalerkinGetKSP PCSPAISetNBSteps
PCFactorSetAllowDiagonalFill PCGalerkinSetComputeSubmatrix PCSPAISetSp
PCFactorSetColumnPivot PCGalerkinSetInterpolation PCSPAISetVerbose
PCFactorSetFill PCGalerkinSetRestriction PCSetApplicationContext
PCFactorSetLevels PCGetApplicationContext PCSetCoordinates
PCFactorSetMatOrderingType PCGetDM PCSetDM
PCFactorSetMatSolverPackage PCGetOperators PCSetDiagonalScale
PCFactorSetPivotInBlocks PCGetOperatorsSet PCSetOperators
PCFactorSetReuseFill PCGetReusePreconditioner PCSetReusePreconditioner
PCFactorSetReuseOrdering PCGetType PCSetType
PCFactorSetShiftAmount PCGetUseAmat PCSetUseAmat
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