Skip to content
Snippets Groups Projects
Commit d5569b49 authored by Thomas Baumann's avatar Thomas Baumann
Browse files

Bugfix in computing absolute value with cupy datatype

parent c2701a0e
No related branches found
No related tags found
No related merge requests found
Pipeline #216525 passed
import cupy as cp
from pySDC.core.errors import DataError
try:
from mpi4py import MPI
......@@ -37,6 +36,7 @@ class cupy_mesh(cp.ndarray):
):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment