fipy.solvers.pysparse.linearInitialSolver

Classes

LinearInitialSolver([tolerance, criterion, ...])

Wrapper for solvers that normalize the residual by the initial value.

class fipy.solvers.pysparse.linearInitialSolver.LinearInitialSolver(tolerance='default', criterion='default', iterations='default', precon='default')

Bases: PysparseSolver

Wrapper for solvers that normalize the residual by the initial value.

Attention

This class is abstract. Always create one of its subclasses.

Create a Solver object.

Parameters:
  • tolerance (float) – Required residual tolerance.

  • criterion ({'default', 'initial', 'unscaled', 'RHS', 'matrix', 'solution', 'preconditioned', 'natural', 'legacy'}, optional) – Interpretation of tolerance. See Convergence for more information.

  • iterations (int) – Maximum number of iterative steps to perform.

  • precon (Preconditioner) – 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

Last updated on Jun 26, 2024. Created using Sphinx 7.1.2.