-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9b1e31
commit 6790d00
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/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 from time zero | ||
mpirun -np 8 ./build/bin/athenaPK -r first_run/parthenon.restart.00000.rhdf | ||
|
||
# clean up | ||
rm *.csv | ||
|
||
# compare SECOND restart outputs | ||
h5diff first_run/parthenon.restart.00002.rhdf parthenon.restart.00002.rhdf | ||
|
||
# compare with phdf_diff | ||
uv run external/parthenon/scripts/python/packages/parthenon_tools/parthenon_tools/phdf_diff.py -one parthenon.restart.00002.rhdf first_run/parthenon.restart.00002.rhdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters