Skip to content

Commit

Permalink
use only 1 MPI rank
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Oct 17, 2024
1 parent 25290db commit 931df42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reproducer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -x

NRANKS=1

# compile
rm -rf build
mkdir build
Expand All @@ -11,15 +13,15 @@ cmake --build .
cd ..

# first run
mpirun -np 8 ./build/bin/athenaPK -i inputs/restart_reproducer.in
mpirun -np $NRANKS ./build/bin/athenaPK -i inputs/restart_reproducer.in

# move outputs to avoid being overwritten
mkdir first_run
mv parthenon.* first_run
rm *.csv

# restart run
mpirun -np 8 ./build/bin/athenaPK -r first_run/parthenon.restart.00000.rhdf
mpirun -np $NRANKS ./build/bin/athenaPK -r first_run/parthenon.restart.00000.rhdf

# clean up
rm *.csv
Expand Down

0 comments on commit 931df42

Please sign in to comment.