Esempio 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
Esempio 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
    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
Esempio 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