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