Skip to content

Commit f734334

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/amrex/extensions/MultiFab.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,9 @@ def __getitem__(self, index, with_internal_ghosts=False):
493493
# Gather the data to be included in a list to be sent to other processes
494494
datalist = []
495495
for mfi in self:
496-
block_slices, global_slices = _get_intersect_slice(self, mfi, index4, with_internal_ghosts)
496+
block_slices, global_slices = _get_intersect_slice(
497+
self, mfi, index4, with_internal_ghosts
498+
)
497499
if global_slices is not None:
498500
# Note that the array will always have 4 dimensions.
499501
device_arr = _get_field(self, mfi)
@@ -536,7 +538,7 @@ def __getitem__(self, index, with_internal_ghosts=False):
536538
# from the valid cells is used.
537539
# This check is whether the domain is complete is approximate (since it doesn't
538540
# account for cases where boxes overlap each other).
539-
domain_complete = (self.box_array().numPts >= self.box_array().minimal_box().numPts())
541+
domain_complete = self.box_array().numPts >= self.box_array().minimal_box().numPts()
540542

541543
if domain_complete or with_internal_ghosts:
542544
result_global = None

0 commit comments

Comments
 (0)