コード例 #1
0
ファイル: linearPCGSolver.py プロジェクト: Rhys314/fipy
    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
コード例 #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
コード例 #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
コード例 #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