fipy.solvers.pyAMG.linearPCGSolver¶
Classes
|
The LinearPCGSolver is an interface to the PCG solver in Scipy, using the PyAMG SmoothedAggregationPreconditioner by default. |
- class fipy.solvers.pyAMG.linearPCGSolver.LinearPCGSolver(tolerance=1e-15, iterations=2000, precon=<fipy.solvers.pyAMG.preconditioners.smoothedAggregationPreconditioner.SmoothedAggregationPreconditioner object>)¶
Bases:
LinearPCGSolver
The LinearPCGSolver is an interface to the PCG solver in Scipy, using the PyAMG SmoothedAggregationPreconditioner by default.
- Parameters:
tolerance (
float
) – Required error tolerance.iterations (
int
) – Maximum number of iterative steps to perform.precon (
SmoothedAggregationPreconditioner
, optional) –
- 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