Skip to content

Commit

Permalink
Bugfix in computing absolute value with cupy datatype (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
brownbaerchen authored Sep 13, 2024
1 parent c2701a0 commit f46209f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pySDC/implementations/datatype_classes/cupy_mesh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import cupy as cp
from pySDC.core.errors import DataError

try:
from mpi4py import MPI
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f46209f

Please sign in to comment.