petsc-3.10.2 2018-10-09
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 PCGASMSetTotalSubdomains PCNONE
PCASM PCGASMType PCPBJACOBI
PCASMType PCICC PCPatchConstructType
PCBJACOBI PCILU PCSOR
PCCHOLESKY PCJACOBI PCSPAI
PCCompositeType PCKaczmarz PCSide
PCEISENSTAT PCLU PCTFS
PCExoticType PCMGCycleType PCType
PCFailedReason PCMGType PCVPBJACOBI
PCGASM PCMGalerkinType
Intermediate - Setting options for algorithms and data structures
PCASMGetDMSubdomains PCFactorSetUseInPlace PCHYPRESetDiscreteCurl
PCASMGetLocalType PCFactorSetZeroPivot PCHYPRESetDiscreteGradient
PCASMGetType PCFieldSplitGetDMSplits PCHYPRESetEdgeConstantVectors
PCASMSetDMSubdomains PCFieldSplitGetDetectSaddlePoint PCHYPRESetInterpolations
PCASMSetLocalType PCFieldSplitGetDiagUseAmat PCHYPRESetType
PCASMSetOverlap PCFieldSplitGetIS PCISSetSubdomainDiagonalScaling
PCASMSetSortIndices PCFieldSplitGetOffDiagUseAmat PCISSetSubdomainScalingFactor
PCASMSetType PCFieldSplitGetSchurPre PCISSetUseStiffnessScaling
PCBDDC PCFieldSplitGetType PCJacobiGetType
PCBDDCGetDirichletBoundaries PCFieldSplitSchurFactType PCJacobiGetUseAbs
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSchurPreType PCJacobiSetType
PCBDDCGetNeumannBoundaries PCFieldSplitSetBlockSize PCJacobiSetUseAbs
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetDMSplits PCJacobiType
PCBDDCGetPrimalVerticesIS PCFieldSplitSetDetectSaddlePoint PCKSP
PCBDDCGetPrimalVerticesLocalIS PCFieldSplitSetDiagUseAmat PCLMVM
PCBDDCSetChangeOfBasisMat PCFieldSplitSetFields PCLMVMClearIS
PCBDDCSetCoarseningRatio PCFieldSplitSetIS PCLMVMGetMatLMVM
PCBDDCSetDirichletBoundaries PCFieldSplitSetOffDiagUseAmat PCLMVMSetIS
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetSchurFactType PCLMVMSetMatLMVM
PCBDDCSetDofsSplitting PCFieldSplitSetSchurPre PCLSC
PCBDDCSetDofsSplittingLocal PCFieldSplitSetSchurScale PCLoad
PCBDDCSetLevels PCFieldSplitSetType PCMAT
PCBDDCSetLocalAdjacencyGraph PCGALERKIN PCML
PCBDDCSetNeumannBoundaries PCGAMG PCNN
PCBDDCSetNeumannBoundariesLocal PCGAMGASMSetUseAggs PCPARMS
PCBDDCSetPrimalVerticesIS PCGAMGClassicalGetType PCPARMSGlobalType
PCBDDCSetPrimalVerticesLocalIS PCGAMGClassicalSetType PCPARMSLocalType
PCBJacobiGetLocalBlocks PCGAMGGetType PCPARMSSetFill
PCBJacobiGetTotalBlocks PCGAMGSetCoarseEqLim PCPARMSSetGlobal
PCBJacobiSetLocalBlocks PCGAMGSetNSmooths PCPARMSSetLocal
PCBJacobiSetTotalBlocks PCGAMGSetNlevels PCPARMSSetNonsymPerm
PCCOMPOSITE PCGAMGSetProcEqLim PCPARMSSetSolveRestart
PCCP PCGAMGSetRepartition PCPARMSSetSolveTolerances
PCDiagonalScaleLeft PCGAMGSetReuseInterpolation PCPATCH
PCDiagonalScaleRight PCGAMGSetSquareGraph PCPythonSetType
PCEisenstatGetNoDiagonalScaling PCGAMGSetSymGraph PCREDISTRIBUTE
PCEisenstatGetOmega PCGAMGSetThreshold PCREDUNDANT
PCEisenstatSetNoDiagonalScaling PCGAMGSetType PCSORGetIterations
PCEisenstatSetOmega PCGAMGSetUseParallelCoarseGridSolve PCSORGetOmega
PCExoticSetType PCGAMGType PCSORGetSymmetric
PCFIELDSPLIT PCGASMDestroySubdomains PCSORSetIterations
PCFactorGetAllowDiagonalFill PCGASMGetUseDMSubdomains PCSORSetOmega
PCFactorGetLevels PCGASMSetOverlap PCSORSetSymmetric
PCFactorGetMatSolverType PCGASMSetSortIndices PCSPAISetBlockSize
PCFactorGetShiftAmount PCGASMSetType PCSPAISetCacheSize
PCFactorGetShiftType PCGASMSetUseDMSubdomains PCSPAISetEpsilon
PCFactorGetUseInPlace PCGalerkinGetKSP PCSPAISetMax
PCFactorGetZeroPivot PCGalerkinSetComputeSubmatrix PCSPAISetMaxNew
PCFactorReorderForNonzeroDiagonal PCGalerkinSetInterpolation PCSPAISetNBSteps
PCFactorSetAllowDiagonalFill PCGalerkinSetRestriction PCSPAISetSp
PCFactorSetColumnPivot PCGetApplicationContext PCSPAISetVerbose
PCFactorSetFill PCGetDM PCSetApplicationContext
PCFactorSetLevels PCGetOperators PCSetCoordinates
PCFactorSetMatOrderingType PCGetOperatorsSet PCSetDM
PCFactorSetMatSolverType PCGetReusePreconditioner PCSetDiagonalScale
PCFactorSetPivotInBlocks PCGetType PCSetOperators
PCFactorSetReuseFill PCGetUseAmat PCSetReusePreconditioner
PCFactorSetReuseOrdering PCHYPRE PCSetType
PCFactorSetShiftAmount PCHYPREGetType PCSetUseAmat
PCFactorSetShiftType PCHYPRESetAlphaPoissonMatrix
PCFactorSetUpMatSolverType PCHYPRESetBetaPoissonMatrix
Advanced - Setting more advanced options and customization
PCASMCreateSubdomains PCFieldSplitSchurRestoreS PCRowScalingViennaCL
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 PCKSPSetKSP PCTelescopeGetIgnoreDM
PCBJacobiGetSubKSP PCPFMG PCTelescopeGetIgnoreKSPComputeOperators
PCCHOWILUViennaCL PCPatchSetComputeOperator PCTelescopeGetKSP
PCComputeExplicitOperator PCRedistributeGetKSP PCTelescopeGetReductionFactor
PCEXOTIC PCRedundantGetKSP PCTelescopeGetSubcommType
PCFactorGetMatrix PCRedundantGetOperators PCTelescopeSetIgnoreDM
PCFieldSplitGetSchurBlocks PCRedundantSetNumber PCTelescopeSetIgnoreKSPComputeOperators
PCFieldSplitGetSubKSP PCRedundantSetScatter PCTelescopeSetReductionFactor
PCFieldSplitRestrictIS PCRegister PCTelescopeSetSubcommType
PCFieldSplitSchurGetS PCRegisterAll
PCFieldSplitSchurGetSubKSP PCRichardsonConvergedReason
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PCApply PCCompositeGetPC PCSetUpOnBlocks
PCApplyBAorAB PCCompositeGetType PCShellGetName
PCApplyBAorABTranspose PCCompositeSetType PCShellSetApply
PCApplyRichardson PCCompositeSpecialSetAlpha PCShellSetApplyBA
PCApplyRichardsonExists PCCreate PCShellSetApplyRichardson
PCApplySymmetricLeft PCDestroy PCShellSetApplySymmetricLeft
PCApplySymmetricRight PCGAMGFilterGraph PCShellSetApplySymmetricRight
PCApplyTranspose PCGAMGFinalizePackage PCShellSetApplyTranspose
PCApplyTransposeExists PCGAMGInitializePackage PCShellSetDestroy
PCBDDCCreateFETIDPOperators PCGetDiagonalScale PCShellSetName
PCBDDCFinalizePackage PCModifySubMatrices PCShellSetPostSolve
PCBDDCInitializePackage PCPostSolve PCShellSetPreSolve
PCBDDCMatFETIDPGetRHS PCPreSolve PCShellSetSetUp
PCBDDCMatFETIDPGetSolution PCReset PCShellSetView
PCCompositeAddPC PCSetFromOptions PCView
PCCompositeGetNumberPC PCSetUp
No deprecated routines

Table of Contents