petsc4py.PETSc.KSP.NormType#
- class petsc4py.PETSc.KSP.NormType#
Bases:
object
KSP norm type.
The available norm types are:
NONE
Skips computing the norm, this should generally only be used if you are using the Krylov method as a smoother with a fixed small number of iterations. Implicitly sets
KSPConvergedSkip
as KSP convergence test. Note that certain algorithms such asType.GMRES
ALWAYS require the norm calculation, for these methods the norms are still computed, they are just not used in the convergence test.PRECONDITIONED
The default for left preconditioned solves, uses the l₂ norm of the preconditioned residual P⁻¹(b - Ax).
UNPRECONDITIONED
Uses the l₂ norm of the true b - Ax residual.
NATURAL
Attributes Summary
Constant
DEFAULT
of typeint
Constant
NATURAL
of typeint
Constant
NO
of typeint
Constant
NONE
of typeint
Constant
NORM_DEFAULT
of typeint
Constant
NORM_NATURAL
of typeint
Constant
NORM_NONE
of typeint
Constant
NORM_PRECONDITIONED
of typeint
Constant
NORM_UNPRECONDITIONED
of typeint
Constant
PRECONDITIONED
of typeint
Constant
UNPRECONDITIONED
of typeint
Attributes Documentation