petsc-3.9.4 2018-09-11
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 PCFactorSetUpMatSolverType 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
PCFactorGetMatSolverType 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
PCFactorSetMatSolverType PCGetOperators PCSetDiagonalScale
PCFactorSetPivotInBlocks PCGetOperatorsSet PCSetOperators
PCFactorSetReuseFill PCGetReusePreconditioner PCSetReusePreconditioner
PCFactorSetReuseOrdering PCGetType PCSetType
PCFactorSetShiftAmount PCGetUseAmat PCSetUseAmat
Advanced - Setting more advanced options and customization
PCASMCreateSubdomains PCFieldSplitSchurRestoreS PCSAViennaCL
PCASMCreateSubdomains2D PCGAMGRegister PCSHELL
PCASMDestroySubdomains PCGAMGSetThresholdScale PCSVD
PCASMGetLocalSubdomains PCGASMCreateSubdomains PCSetErrorIfFailure
PCASMGetLocalSubmatrices PCGASMCreateSubdomains2D PCSetModifySubMatrices
PCASMGetSubKSP PCGASMGetSubKSP PCSetOptionsPrefix
PCASMGetSubMatType PCGASMGetSubdomains PCShellGetContext
PCASMSetLocalSubdomains PCGASMGetSubmatrices PCShellSetContext
PCASMSetSubMatType PCGASMSetSubdomains PCSysPFMG
PCASMSetTotalSubdomains PCGetOptionsPrefix PCTELESCOPE
PCAppendOptionsPrefix PCGetSetUpFailedReason PCTelescopeGetDM
PCBDDCSetDiscreteGradient PCKSPGetKSP PCTelescopeGetIgnoreDM
PCBDDCSetDivergenceMat PCPFMG PCTelescopeGetIgnoreKSPComputeOperators
PCBJacobiGetSubKSP PCRedistributeGetKSP PCTelescopeGetKSP
PCCHOWILUViennaCL PCRedundantGetKSP PCTelescopeGetReductionFactor
PCComputeExplicitOperator PCRedundantGetOperators PCTelescopeGetSubcommType
PCEXOTIC PCRedundantSetNumber PCTelescopeSetIgnoreDM
PCFactorGetMatrix PCRedundantSetScatter PCTelescopeSetIgnoreKSPComputeOperators
PCFieldSplitGetSchurBlocks PCRegister PCTelescopeSetReductionFactor
PCFieldSplitGetSubKSP PCRegisterAll PCTelescopeSetSubcommType
PCFieldSplitRestrictIS PCRichardsonConvergedReason
PCFieldSplitSchurGetS PCRowScalingViennaCL
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