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 3, 2024
1 parent bbe6db2 commit eb5e676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_multifab.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ def test_mfab_numpy(mfab):
# Third dimension, sets all valid and ghost cells
# - The empty tuple is used to specify the range to include all valid and ghost cells.
# Components dimension, sets second component.
mfab[-1j:2j,:,(),2] = np.full((nx+2, ny, nz+2*nghosts), 42.)
mfab[-1j:2j, :, (), 2] = np.full((nx + 2, ny, nz + 2 * nghosts), 42.0)

# Get a range of cells
# Get the data along the valid cells in the first dimension (gathering data across blocks
# and processors), at the first upper guard cell in the second dimensionn, and cell 16 of
# the third (with 16 being relative to 0 which is the lower end of the full domain).
# Note that in an MPI context, this is a global operation, so caution is required when
# scaling to large numbers of processors.
mfslice = mfab[:,1j,16]
mfslice = mfab[:, 1j, 16]

# Manual: Compute Mfab Global END

Expand Down

0 comments on commit eb5e676

Please sign in to comment.