petsc-3.6.0 2015-06-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
PCASM PCICC PCPBJACOBI
PCBJACOBI PCILU PCSOR
PCCHOLESKY PCJACOBI PCSPAI
PCEISENSTAT PCKaczmarz PCTFS
PCGASM PCLU
PCGASMSetTotalSubdomains PCNONE
Intermediate - Setting options for algorithms and data structures
PCASMGetDMSubdomains PCFactorSetShiftType PCHYPRESetBetaPoissonMatrix
PCASMGetLocalType PCFactorSetUpMatSolverPackage PCHYPRESetDiscreteCurl
PCASMGetType PCFactorSetUseInPlace PCHYPRESetDiscreteGradient
PCASMSetDMSubdomains PCFactorSetZeroPivot PCHYPRESetEdgeConstantVectors
PCASMSetLocalType PCFieldSplitGetDMSplits PCHYPRESetType
PCASMSetOverlap PCFieldSplitGetDiagUseAmat PCISSetSubdomainDiagonalScaling
PCASMSetSortIndices PCFieldSplitGetIS PCISSetSubdomainScalingFactor
PCASMSetType PCFieldSplitGetOffDiagUseAmat PCISSetUseStiffnessScaling
PCBDDC PCFieldSplitGetSchurPre PCJacobiGetType
PCBDDCGetDirichletBoundaries PCFieldSplitGetType PCJacobiGetUseAbs
PCBDDCGetDirichletBoundariesLocal PCFieldSplitSetBlockSize PCJacobiSetType
PCBDDCGetNeumannBoundaries PCFieldSplitSetDMSplits PCJacobiSetUseAbs
PCBDDCGetNeumannBoundariesLocal PCFieldSplitSetDiagUseAmat PCKSP
PCBDDCSetChangeOfBasisMat PCFieldSplitSetFields PCLSC
PCBDDCSetCoarseningRatio PCFieldSplitSetIS PCLoad
PCBDDCSetDirichletBoundaries PCFieldSplitSetOffDiagUseAmat PCMAT
PCBDDCSetDirichletBoundariesLocal PCFieldSplitSetSchurFactType PCMG
PCBDDCSetDofsSplitting PCFieldSplitSetSchurPre PCMGGetGalerkin
PCBDDCSetDofsSplittingLocal PCFieldSplitSetType PCMGSetGalerkin
PCBDDCSetLevels PCGALERKIN PCMGSetLevels
PCBDDCSetLocalAdjacencyGraph PCGAMG PCML
PCBDDCSetNeumannBoundaries PCGAMGClassicalGetType PCNN
PCBDDCSetNeumannBoundariesLocal PCGAMGClassicalSetType PCPARMS
PCBDDCSetNullSpace PCGAMGGetType PCPARMSSetFill
PCBDDCSetPrimalVerticesLocalIS PCGAMGSetCoarseEqLim PCPARMSSetGlobal
PCBJacobiGetLocalBlocks PCGAMGSetNSmooths PCPARMSSetLocal
PCBJacobiGetTotalBlocks PCGAMGSetNlevels PCPARMSSetNonsymPerm
PCBJacobiSetLocalBlocks PCGAMGSetProcEqLim PCPARMSSetSolveRestart
PCBJacobiSetTotalBlocks PCGAMGSetRepartitioning PCPARMSSetSolveTolerances
PCCOMPOSITE PCGAMGSetReuseInterpolation PCPythonSetType
PCCP PCGAMGSetSquareGraph PCREDISTRIBUTE
PCDiagonalScaleLeft PCGAMGSetSymGraph PCREDUNDANT
PCDiagonalScaleRight PCGAMGSetThreshold PCSORGetIterations
PCEisenstatGetNoDiagonalScaling PCGAMGSetType PCSORGetOmega
PCEisenstatGetOmega PCGAMGSetUseASMAggs PCSORGetSymmetric
PCEisenstatSetNoDiagonalScaling PCGASMDestroySubdomains PCSORSetIterations
PCEisenstatSetOmega PCGASMGetUseDMSubdomains PCSORSetOmega
PCExoticSetType PCGASMSetOverlap PCSORSetSymmetric
PCFIELDSPLIT PCGASMSetSortIndices PCSPAISetBlockSize
PCFactorGetAllowDiagonalFill PCGASMSetType PCSPAISetCacheSize
PCFactorGetLevels PCGASMSetUseDMSubdomains PCSPAISetEpsilon
PCFactorGetMatSolverPackage PCGalerkinGetKSP PCSPAISetMax
PCFactorGetUseInPlace PCGalerkinSetInterpolation PCSPAISetMaxNew
PCFactorReorderForNonzeroDiagonal PCGalerkinSetRestriction PCSPAISetNBSteps
PCFactorSetAllowDiagonalFill PCGetApplicationContext PCSPAISetSp
PCFactorSetColumnPivot PCGetDM PCSPAISetVerbose
PCFactorSetFill PCGetOperators PCSetApplicationContext
PCFactorSetLevels PCGetOperatorsSet PCSetCoordinates
PCFactorSetMatOrderingType PCGetReusePreconditioner PCSetDM
PCFactorSetMatSolverPackage PCGetType PCSetDiagonalScale
PCFactorSetPivotInBlocks PCGetUseAmat PCSetOperators
PCFactorSetReuseFill PCHYPRE PCSetReusePreconditioner
PCFactorSetReuseOrdering PCHYPREGetType PCSetType
PCFactorSetShiftAmount PCHYPRESetAlphaPoissonMatrix PCSetUseAmat
Advanced - Setting more advanced options and customization
PCAINVCUSP PCGASMGetSubmatrices PCMGSetRestriction
PCASMCreateSubdomains PCGASMSetSubdomains PCMGSetRhs
PCASMCreateSubdomains2D PCGetOptionsPrefix PCMGSetType
PCASMDestroySubdomains PCGetSetUpFailedReason PCMGSetX
PCASMGetLocalSubdomains PCKSPGetKSP PCPFMG
PCASMGetLocalSubmatrices PCMGGetCoarseSolve PCRedistributeGetKSP
PCASMGetSubKSP PCMGGetInterpolation PCRedundantGetKSP
PCASMSetLocalSubdomains PCMGGetLevels PCRedundantGetOperators
PCASMSetTotalSubdomains PCMGGetRScale PCRedundantSetNumber
PCAppendOptionsPrefix PCMGGetRestriction PCRedundantSetScatter
PCBJacobiGetSubKSP PCMGGetSmoother PCRegister
PCComputeExplicitOperator PCMGGetSmootherDown PCRegisterAll
PCEXOTIC PCMGGetSmootherUp PCSACUSP
PCFactorGetMatrix PCMGGetType PCSHELL
PCFieldSplitGetSchurBlocks PCMGMultiplicativeSetCycles PCSVD
PCFieldSplitGetSubKSP PCMGSetCycleType PCSetErrorIfFailure
PCFieldSplitSchurGetS PCMGSetCyclesOnLevel PCSetModifySubMatrices
PCFieldSplitSchurRestoreS PCMGSetInterpolation PCSetOptionsPrefix
PCGAMGRegister PCMGSetNumberSmoothDown PCShellGetContext
PCGASMCreateSubdomains PCMGSetNumberSmoothUp PCShellSetContext
PCGASMCreateSubdomains2D PCMGSetR PCSysPFMG
PCGASMGetSubKSP PCMGSetRScale
PCGASMGetSubdomains PCMGSetResidual
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PCApply PCCompositeSetType PCSetUp
PCApplyBAorAB PCCompositeSpecialSetAlpha PCSetUpOnBlocks
PCApplyBAorABTranspose PCCreate PCShellGetName
PCApplyRichardson PCDestroy PCShellSetApply
PCApplyRichardsonExists PCGAMGFinalizePackage PCShellSetApplyBA
PCApplySymmetricLeft PCGAMGInitializePackage PCShellSetApplyRichardson
PCApplySymmetricRight PCGetDiagonalScale PCShellSetApplyTranspose
PCApplyTranspose PCGetInitialGuessNonzero PCShellSetDestroy
PCApplyTransposeExists PCMGResidualDefault PCShellSetName
PCBDDCCreateFETIDPOperators PCModifySubMatrices PCShellSetPostSolve
PCBDDCMatFETIDPGetRHS PCPostSolve PCShellSetPreSolve
PCBDDCMatFETIDPGetSolution PCPreSolve PCShellSetSetUp
PCCompositeAddPC PCReset PCShellSetView
PCCompositeGetPC PCSetFromOptions PCView
PCCompositeGetType PCSetInitialGuessNonzero
No deprecated routines

Table of Contents