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 May 7, 2024
1 parent 8f066a8 commit 0b2b394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_MPMD/test_1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int main(int argc, char* argv[])
// Global Max
amrex::ParallelAllReduce::Max<amrex::Real>(glb_max,comm);
if (glb_max != amrex::Real(0.0)) {
amrex::Abort("There appears to be a mismatch in data-ordering \n");
amrex::Abort("There appears to be a mismatch in data-ordering \n");
}
}
amrex::Finalize();
Expand Down
5 changes: 3 additions & 2 deletions tests/test_MPMD/test_1/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# Authors: Bhargav Sriram Siddani, Revathi Jambunathan, Edoardo Zoni, Olga Shapoval, David Grote, Axel Huebl

from mpi4py import MPI

import amrex.space3d as amr

# Initialize amrex::MPMD to establish communication across the two apps
Expand All @@ -34,8 +35,8 @@

# Fill the second MultiFab component based on the first component
for mfi in mf:
# Convert Array4 to numpy/cupy array
mf_array = mf.array(mfi).to_xp(copy=False,order='F')
# Convert Array4 to numpy/cupy array
mf_array = mf.array(mfi).to_xp(copy=False, order="F")
mf_array[:, :, :, 1] = 10.0 * mf_array[:, :, :, 0]

# Send ONLY the second MultiFab component to the other (C++) app
Expand Down

0 comments on commit 0b2b394

Please sign in to comment.