Skip to content

Commit f46209f

Browse files
Bugfix in computing absolute value with cupy datatype (#480)
1 parent c2701a0 commit f46209f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pySDC/implementations/datatype_classes/cupy_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import cupy as cp
2-
from pySDC.core.errors import DataError
32

43
try:
54
from mpi4py import MPI
@@ -37,6 +36,7 @@ def __new__(cls, init, val=0.0, **kwargs):
3736
):
3837
obj = cp.ndarray.__new__(cls, init[0], dtype=init[2], **kwargs)
3938
obj.fill(val)
39+
cls.comm = init[1]
4040
else:
4141
raise NotImplementedError(type(init))
4242
return obj

0 commit comments

Comments
 (0)