pystella/multigrid/__init__.py
def smooth(self, queue, i, nu):
        """
        Invokes the relaxation solver, computing the error before and after.

        :arg queue: A :class:`pyopencl.CommandQueue`.

        :arg i: On which level to perform the smoothing.

        :arg nu: The number of smoothing iterations to perform.

        :returns: A list containing the errors before and after of the form
            ``[(i, error_before), (i, error_after)]``.
        """

        errs1 = self.solver.get_error(queue, **self.resid_args[i])
        self.solver(self.decomp[i], queue, iterations=nu, **self.smooth_args[i])
        errs2 = self.solver.get_error(queue, **self.resid_args[i])
        return [(i, errs1), (i, errs2)]

        Invokes the relaxation solver, computing the error before and after.

        :arg queue: A :class:`pyopencl.CommandQueue`.

        :arg i: On which level to perform the smoothing.

        :arg nu: The number of smoothing iterations to perform.

        :returns: A list containing the errors before and after of the form
            ``[(i, error_before), (i, error_after)]``.
        
Invokes the relaxation solver, computing the error before and after.
Invokes the relaxation solver computing the error before and after .
def smooth(self, queue, i, nu):
        errs1 = self.solver.get_error(queue, **self.resid_args[i])
        self.solver(self.decomp[i], queue, iterations=nu, **self.smooth_args[i])
        errs2 = self.solver.get_error(queue, **self.resid_args[i])
        return [(i, errs1), (i, errs2)]
def smooth ( self , queue , i , nu ) : errs1 = self . solver . get_error ( queue , ** self . resid_args [ i ] ) self . solver ( self . decomp [ i ] , queue , iterations = nu , ** self . smooth_args [ i ] ) errs2 = self . solver . get_error ( queue , ** self . resid_args [ i ] ) return [ ( i , errs1 ) , ( i , errs2 ) ]
Invokes the relaxation solver, computing the error before and after.
Invokes the relaxation solver computing the error before and after .
"""
        Invokes the relaxation solver, computing the error before and after.

        :arg queue: A :class:`pyopencl.CommandQueue`.

        :arg i: On which level to perform the smoothing.

        :arg nu: The number of smoothing iterations to perform.

        :returns: A list containing the errors before and after of the form
            ``[(i, error_before), (i, error_after)]``.
        """
A list containing the errors before and after of the form
``[(i, error_before), (i, error_after)]``.
A list containing the errors before and after of the form ` ` [ ( i error_before ) ( i error_after ) ] ` ` .
self
queue
None
i
On which level to perform the smoothing.
On which level to perform the smoothing .
nu
The number of smoothing iterations to perform.
The number of smoothing iterations to perform .