fipy.solvers.trilinos.linearCGSolver

Classes

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

Interface to the conjugate gradient (CG) solver in Trilinos.

LinearPCGSolver

alias of LinearCGSolver

class fipy.solvers.trilinos.linearCGSolver.LinearCGSolver(tolerance='default', criterion='default', iterations='default', precon='default')

Bases: TrilinosAztecOOSolver

Interface to the conjugate gradient (CG) solver in Trilinos.

Uses the MultilevelDDPreconditioner by default.

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

alias of MultilevelDDPreconditioner

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

fipy.solvers.trilinos.linearCGSolver.LinearPCGSolver

alias of LinearCGSolver

Last updated on Sep 02, 2025. Created using Sphinx 7.1.2.