fipy.solvers.scipy.linearPCGSolver¶
Classes
|
The LinearPCGSolver is an interface to the CG solver in Scipy, with no preconditioning by default. |
- class fipy.solvers.scipy.linearPCGSolver.LinearPCGSolver(tolerance='default', absolute_tolerance=0.0, criterion='default', iterations='default', precon='default')¶
Bases:
ScipyKrylovSolver
The LinearPCGSolver is an interface to the CG solver in Scipy, with no preconditioning by default.
Create a Solver object.
- Parameters:
tolerance (
float
) – Required relative error tolerance.absolute_tolerance (
float
) – Required absolute error tolerance.criterion (
{'default', 'unscaled', 'RHS', 'matrix', 'initial', 'legacy', }
) – Interpretation oftolerance
. See Convergence for more information.iterations (
int
) – Maximum number of iterative steps to perform.precon – Preconditioner to use. Not all solver suites support preconditioners.
- DEFAULT_ITERATIONS = 1000¶
Default maximum number of iterative steps to perform
- DEFAULT_PRECONDITIONER = None¶
Default preconditioner to apply to the matrix
- DEFAULT_TOLERANCE = 1e-05¶
Default tolerance for linear solves unless criterion=”legacy”
- LEGACY_TOLERANCE = 1e-10¶
Default tolerance for linear solves if criterion=”legacy”
- __repr__()¶
Return repr(self).
- property default_tolerance¶
Default tolerance for linear solve