petsc4py.PETSc.KSP.ConvergedReason#
- class petsc4py.PETSc.KSP.ConvergedReason#
Bases:
object
KSP Converged Reason.
CONVERGED_ITERATING
Still iterating
ITERATING
Still iterating
CONVERGED_RTOL_NORMAL
Undocumented.
CONVERGED_ATOL_NORMAL
Undocumented.
CONVERGED_RTOL
∥r∥ <= rtolnorm(b) or rtolnorm(b - Ax₀)
CONVERGED_ATOL
∥r∥ <= atol
CONVERGED_ITS
Used by the
Type.PREONLY
solver after the single iteration of the preconditioner is applied. Also used when theKSPConvergedSkip
convergence test routine is set in KSP.CONVERGED_NEG_CURVE
Undocumented.
CONVERGED_STEP_LENGTH
Undocumented.
CONVERGED_HAPPY_BREAKDOWN
Undocumented.
DIVERGED_NULL
Undocumented.
DIVERGED_MAX_IT
Ran out of iterations before any convergence criteria was reached.
DIVERGED_DTOL
norm(r) >= dtol*norm(b)
DIVERGED_BREAKDOWN
A breakdown in the Krylov method was detected so the method could not continue to enlarge the Krylov space. Could be due to a singular matrix or preconditioner. In KSPHPDDM, this is also returned when some search directions within a block are colinear.
DIVERGED_BREAKDOWN_BICG
A breakdown in the KSPBICG method was detected so the method could not continue to enlarge the Krylov space.
DIVERGED_NONSYMMETRIC
It appears the operator or preconditioner is not symmetric and this Krylov method (
Type.CG
,Type.MINRES
,Type.CR
) requires symmetry.DIVERGED_INDEFINITE_PC
It appears the preconditioner is indefinite (has both positive and negative eigenvalues) and this Krylov method (
Type.CG
) requires it to be positive definite.DIVERGED_NANORINF
Undocumented.
DIVERGED_INDEFINITE_MAT
Undocumented.
DIVERGED_PCSETUP_FAILED
It was not possible to build or use the requested preconditioner. This is usually due to a zero pivot in a factorization. It can also result from a failure in a subpreconditioner inside a nested preconditioner such as
PC.Type.FIELDSPLIT
.
See also
Attributes Summary
Constant
CONVERGED_ATOL
of typeint
Constant
CONVERGED_ATOL_NORMAL
of typeint
Constant
CONVERGED_HAPPY_BREAKDOWN
of typeint
Constant
CONVERGED_ITERATING
of typeint
Constant
CONVERGED_ITS
of typeint
Constant
CONVERGED_NEG_CURVE
of typeint
Constant
CONVERGED_RTOL
of typeint
Constant
CONVERGED_RTOL_NORMAL
of typeint
Constant
CONVERGED_STEP_LENGTH
of typeint
Constant
DIVERGED_BREAKDOWN
of typeint
Constant
DIVERGED_BREAKDOWN_BICG
of typeint
Constant
DIVERGED_DTOL
of typeint
Constant
DIVERGED_INDEFINITE_MAT
of typeint
Constant
DIVERGED_INDEFINITE_PC
of typeint
Constant
DIVERGED_MAX_IT
of typeint
Constant
DIVERGED_NANORINF
of typeint
Constant
DIVERGED_NONSYMMETRIC
of typeint
Constant
DIVERGED_NULL
of typeint
Constant
DIVERGED_PCSETUP_FAILED
of typeint
Constant
ITERATING
of typeint
Attributes Documentation
- CONVERGED_HAPPY_BREAKDOWN: int = CONVERGED_HAPPY_BREAKDOWN#
Constant
CONVERGED_HAPPY_BREAKDOWN
of typeint
- DIVERGED_BREAKDOWN_BICG: int = DIVERGED_BREAKDOWN_BICG#
Constant
DIVERGED_BREAKDOWN_BICG
of typeint
- DIVERGED_INDEFINITE_MAT: int = DIVERGED_INDEFINITE_MAT#
Constant
DIVERGED_INDEFINITE_MAT
of typeint