From d5569b4968d9430efeb822e41ffc26bdc5ddff3f Mon Sep 17 00:00:00 2001 From: Thomas Baumann <39156931+brownbaerchen@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:12:47 +0200 Subject: [PATCH] Bugfix in computing absolute value with cupy datatype --- pySDC/implementations/datatype_classes/cupy_mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySDC/implementations/datatype_classes/cupy_mesh.py b/pySDC/implementations/datatype_classes/cupy_mesh.py index 01b9dde1e8..0b27524f32 100644 --- a/pySDC/implementations/datatype_classes/cupy_mesh.py +++ b/pySDC/implementations/datatype_classes/cupy_mesh.py @@ -1,5 +1,4 @@ import cupy as cp -from pySDC.core.errors import DataError try: from mpi4py import MPI @@ -37,6 +36,7 @@ def __new__(cls, init, val=0.0, **kwargs): ): obj = cp.ndarray.__new__(cls, init[0], dtype=init[2], **kwargs) obj.fill(val) + cls.comm = init[1] else: raise NotImplementedError(type(init)) return obj