Skip to content

Commit 506101a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0d6c3cb commit 506101a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/amrex/extensions/MultiFab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ def __getitem__(self, index, with_internal_ghosts=False):
537537
overlaps valid cells.
538538
"""
539539
import inspect
540+
540541
amr = inspect.getmodule(self)
541542

542543
index4 = _process_index(self, index)
@@ -554,6 +555,7 @@ def __getitem__(self, index, with_internal_ghosts=False):
554555
try:
555556
if amr.Config.gpu_backend == "SYCL":
556557
import dpnp
558+
557559
slice_arr = dpnp.asnumpy(slice_arr)
558560
else:
559561
# Copy data from host to device using cupy syntax

0 commit comments

Comments
 (0)