pystella/multigrid/__init__.py
def transfer_up(self, queue, i):
        """
        Transfers all arrays from a coarse to the next-finer level.

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

        :arg i: The level from to transfer to.
        """

        for k, f1 in self.unknowns[i].items():
            f2 = self.unknowns[i+1][k]
            self.restrict_and_correct(queue, f1=f1, f2=f2)
            self.decomp[i+1].share_halos(queue, f2)
            self.interpolate_and_correct(queue, f1=f1, f2=f2)
            self.decomp[i].share_halos(queue, f1)

        Transfers all arrays from a coarse to the next-finer level.

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

        :arg i: The level from to transfer to.
        
Transfers all arrays from a coarse to the next-finer level.
Transfers all arrays from a coarse to the next - finer level .
def transfer_up(self, queue, i):
        for k, f1 in self.unknowns[i].items():
            f2 = self.unknowns[i+1][k]
            self.restrict_and_correct(queue, f1=f1, f2=f2)
            self.decomp[i+1].share_halos(queue, f2)
            self.interpolate_and_correct(queue, f1=f1, f2=f2)
            self.decomp[i].share_halos(queue, f1)
def transfer_up ( self , queue , i ) : for k , f1 in self . unknowns [ i ] . items ( ) : f2 = self . unknowns [ i + 1 ] [ k ] self . restrict_and_correct ( queue , f1 = f1 , f2 = f2 ) self . decomp [ i + 1 ] . share_halos ( queue , f2 ) self . interpolate_and_correct ( queue , f1 = f1 , f2 = f2 ) self . decomp [ i ] . share_halos ( queue , f1 )
Transfers all arrays from a coarse to the next-finer level.
Transfers all arrays from a coarse to the next - finer level .
"""
        Transfers all arrays from a coarse to the next-finer level.

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

        :arg i: The level from to transfer to.
        """
self
queue
None
i
The level from to transfer to.
The level from to transfer to .