Skip to content

Commit

Permalink
add self-contained reproducer for restart issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Oct 17, 2024
1 parent d5b7246 commit f8beae9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions reproducer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

set -x

# compile
mkdir build
cd build
cmake .. -DPARTHENON_ENABLE_PYTHON_MODULE_CHECK=OFF
cmake --build .
cd ..

# first run
mpirun -np 8 ./build/bin/athenaPK -i inputs/precipitator_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

# clean up
rm *.csv

# compare restart outputs
h5diff first_run/parthenon.restart.00000.phdf parthenon.restart.00001.phdf
h5diff first_run/parthenon.restart.00001.phdf parthenon.restart.00002.phdf

# compare snapshot outputs
h5diff first_run/parthenon.prim.00000.phdf parthenon.prim.00001.phdf
h5diff first_run/parthenon.prim.00001.phdf parthenon.prim.00002.phdf

0 comments on commit f8beae9

Please sign in to comment.