petsc4py.PETSc.KSP.Type#
- class petsc4py.PETSc.KSP.Type#
Bases:
object
KSP Type.
The available types are:
RICHARDSON
The preconditioned Richardson iterative method
KSPRICHARDSON
.CHEBYSHEV
The preconditioned Chebyshev iterative method.
KSPCHEBYSHEV
.CG
The Preconditioned Conjugate Gradient (PCG) iterative method.
KSPCG
GROPPCG
A pipelined conjugate gradient method (Gropp).
KSPGROPPCG
PIPECG
A pipelined conjugate gradient method.
KSPPIPECG
PIPECGRR
Pipelined Conjugate Gradients with Residual Replacement.
KSPPIPECGRR
PIPELCG
Deep pipelined (length l) Conjugate Gradient method.
KSPPIPELCG
PIPEPRCG
Pipelined predict-and-recompute conjugate gradient method.
KSPPIPEPRCG
PIPECG2
Pipelined conjugate gradient method with a single non-blocking reduction per two iterations.
KSPPIPECG2
CGNE
Applies the preconditioned conjugate gradient method to the normal equations without explicitly forming AᵀA.
KSPCGNE
NASH
Conjugate gradient method subject to a constraint on the solution norm.
KSPNASH
STCG
Conjugate gradient method subject to a constraint on the solution norm.
KSPSTCG
GLTR
Conjugate gradient method subject to a constraint on the solution norm.
KSPGLTR
FCG
Flexible Conjugate Gradient method (FCG). Unlike most KSP methods this allows the preconditioner to be nonlinear.
KSPFCG
PIPEFCG
Pipelined, Flexible Conjugate Gradient method.
KSPPIPEFCG
GMRES
Generalized Minimal Residual method with restart.
KSPGMRES
PIPEFGMRES
Pipelined (1-stage) Flexible Generalized Minimal Residual method.
KSPPIPEFGMRES
FGMRES
Implements the Flexible Generalized Minimal Residual method.
KSPFGMRES
LGMRES
Augments the standard Generalized Minimal Residual method approximation space with approximations to the error from previous restart cycles.
KSPLGMRES
DGMRES
Deflated Generalized Minimal Residual method. In this implementation, the adaptive strategy allows to switch to the deflated GMRES when the stagnation occurs.
KSPDGMRES
PGMRES
Pipelined Generalized Minimal Residual method.
KSPPGMRES
TCQMR
A variant of Quasi Minimal Residual (QMR).
KSPTCQMR
BCGS
Stabilized version of Biconjugate Gradient (BiCGStab) method.
KSPBCGS
IBCGS
Improved Stabilized version of BiConjugate Gradient (IBiCGStab) method in an alternative form to have only a single global reduction operation instead of the usual 3 (or 4).
KSPIBCGS
QMRCGS
Quasi- Minimal Residual variant of the Bi-CGStab algorithm (QMRCGStab) method.
KSPQMRCGS
FBCGS
Flexible Stabilized version of BiConjugate Gradient (BiCGStab) method.
KSPFBCGS
FBCGSR
A mathematically equivalent variant of flexible stabilized BiConjugate Gradient (BiCGStab).
KSPFBCGSR
BCGSL
Variant of the L-step stabilized BiConjugate Gradient (BiCGStab(L)) algorithm. Uses “L-step” Minimal Residual (MR) polynomials. The variation concerns cases when some parameters are negative due to round-off.
KSPBCGSL
PIPEBCGS
Pipelined stabilized BiConjugate Gradient (BiCGStab) method.
KSPPIPEBCGS
CGS
Conjugate Gradient Squared method.
KSPCGS
TFQMR
A Transpose Tree Quasi- Minimal Residual (QMR).
KSPCR
CR
(Preconditioned) Conjugate Residuals (CR) method.
KSPCR
PIPECR
Pipelined Conjugate Residual (CR) method.
KSPPIPECR
LSQR
Least squares solver.
KSPLSQR
PREONLY
Applies ONLY the preconditioner exactly once. This may be used in inner iterations, where it is desired to allow multiple iterations as well as the “0-iteration” case. It is commonly used with the direct solver preconditioners like PCLU and PCCHOLESKY. There is an alias of KSPNONE.
KSPPREONLY
NONE
No solver
KSPNONE
QCG
Conjugate Gradient (CG) method subject to a constraint on the solution norm.
KSPQCG
BICG
Implements the Biconjugate gradient method (BiCG). Similar to running the conjugate gradient on the normal equations.
KSPBICG
MINRES
Minimum Residual (MINRES) method.
KSPMINRES
SYMMLQ
Symmetric LQ method (SymmLQ). Uses LQ decomposition (lower trapezoidal).
KSPSYMMLQ
LCD
Left Conjugate Direction (LCD) method.
KSPLCD
PYTHON
Python shell solver. Call Python function to implement solver.
KSPPYTHON
GCR
Preconditioned flexible Generalized Conjugate Residual (GCR) method.
KSPGCR
PIPEGCR
Pipelined Generalized Conjugate Residual method.
KSPPIPEGCR
TSIRM
Two-Stage Iteration with least-squares Residual Minimization method.
KSPTSIRM
CGLS
Conjugate Gradient method for Least-Squares problems. Supports non-square (rectangular) matrices.
KSPCGLS
FETIDP
Dual-Primal (DP) Finite Element Tearing and Interconnect (FETI) method.
KSPFETIDP
HPDDM
Interface with the HPDDM library. This KSP may be used to further select methods that are currently not implemented natively in PETSc, e.g., GCRODR, a recycled Krylov method which is similar to KSPLGMRES.
KSPHPDDM
See also
Attributes Summary
Object
BCGS
of typestr
Object
BCGSL
of typestr
Object
BICG
of typestr
Object
CG
of typestr
Object
CGLS
of typestr
Object
CGNE
of typestr
Object
CGS
of typestr
Object
CHEBYSHEV
of typestr
Object
CR
of typestr
Object
DGMRES
of typestr
Object
FBCGS
of typestr
Object
FBCGSR
of typestr
Object
FCG
of typestr
Object
FETIDP
of typestr
Object
FGMRES
of typestr
Object
GCR
of typestr
Object
GLTR
of typestr
Object
GMRES
of typestr
Object
GROPPCG
of typestr
Object
HPDDM
of typestr
Object
IBCGS
of typestr
Object
LCD
of typestr
Object
LGMRES
of typestr
Object
LSQR
of typestr
Object
MINRES
of typestr
Object
NASH
of typestr
Object
NONE
of typestr
Object
PGMRES
of typestr
Object
PIPEBCGS
of typestr
Object
PIPECG
of typestr
Object
PIPECG2
of typestr
Object
PIPECGRR
of typestr
Object
PIPECR
of typestr
Object
PIPEFCG
of typestr
Object
PIPEFGMRES
of typestr
Object
PIPEGCR
of typestr
Object
PIPELCG
of typestr
Object
PIPEPRCG
of typestr
Object
PREONLY
of typestr
Object
PYTHON
of typestr
Object
QCG
of typestr
Object
QMRCGS
of typestr
Object
RICHARDSON
of typestr
Object
STCG
of typestr
Object
SYMMLQ
of typestr
Object
TCQMR
of typestr
Object
TFQMR
of typestr
Object
TSIRM
of typestr
Attributes Documentation