Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2024
1 parent c4ceb12 commit f734334
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/amrex/extensions/MultiFab.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ def __getitem__(self, index, with_internal_ghosts=False):
# Gather the data to be included in a list to be sent to other processes
datalist = []
for mfi in self:
block_slices, global_slices = _get_intersect_slice(self, mfi, index4, with_internal_ghosts)
block_slices, global_slices = _get_intersect_slice(
self, mfi, index4, with_internal_ghosts
)
if global_slices is not None:
# Note that the array will always have 4 dimensions.
device_arr = _get_field(self, mfi)
Expand Down Expand Up @@ -536,7 +538,7 @@ def __getitem__(self, index, with_internal_ghosts=False):
# from the valid cells is used.
# This check is whether the domain is complete is approximate (since it doesn't
# account for cases where boxes overlap each other).
domain_complete = (self.box_array().numPts >= self.box_array().minimal_box().numPts())
domain_complete = self.box_array().numPts >= self.box_array().minimal_box().numPts()

if domain_complete or with_internal_ghosts:
result_global = None
Expand Down

0 comments on commit f734334

Please sign in to comment.