Exemplo n.º 1
0
    def __init__(self, tolerance=1e-10, iterations=1000, precon=MultilevelDDPreconditioner()):
        """
        :Parameters:
          - `tolerance`: The required error tolerance.
          - `iterations`: The maximum number of iterative steps to perform.
          - `precon`: Preconditioner to use.

        """
        TrilinosAztecOOSolver.__init__(self, tolerance=tolerance, iterations=iterations, precon=precon)
        self.solver = AztecOO.AZ_cg
Exemplo n.º 2
0
    def __init__(self, tolerance=1e-10, iterations=1000, precon=MultilevelDDPreconditioner()):
        """
        :Parameters:
          - `tolerance`: The required error tolerance.
          - `iterations`: The maximum number of iterative steps to perform.
          - `precon`: Preconditioner to use.

        """
        TrilinosAztecOOSolver.__init__(self, tolerance=tolerance,
                                       iterations=iterations, precon=precon)
        self.solver = AztecOO.AZ_gmres
Exemplo n.º 3
0
    def __init__(self, tolerance=1e-10, iterations=1000, steps=None, precon=JacobiPreconditioner()):
        """
        :Parameters:
          - `tolerance`: The required error tolerance.
          - `iterations`: The maximum number of iterative steps to perform.
          - `steps`: A deprecated name for `iterations`.
          - `precon`: Preconditioner to use.

        """
        TrilinosAztecOOSolver.__init__(self, tolerance=tolerance,
                                       iterations=iterations, steps=steps, precon=precon)
        self.solver = AztecOO.AZ_bicgstab
Exemplo n.º 4
0
 def __init__(self, tolerance=1e-10, iterations=1000, precon=MultilevelDDPreconditioner()):
     """
     Parameters
     ----------
     tolerance : float
         Required error tolerance.
     iterations : int
         Maximum number of iterative steps to perform.
     precon : ~fipy.solvers.trilinos.preconditioners.preconditioner.Preconditioner
     """
     TrilinosAztecOOSolver.__init__(self, tolerance=tolerance,
                                    iterations=iterations, precon=precon)
     self.solver = AztecOO.AZ_cgs