Skip to content

Commit

Permalink
update reproducer to show issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Oct 27, 2024
1 parent 309931d commit 3bc4b16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions inputs/precipitator_restart_reproducer.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ problem_id = precipitator # problem ID: basename of output filenames

<parthenon/output1>
file_type = hst # History data dump
dt = 10.0 # time increment between outputs
dt = 1.0 # time increment between outputs

<parthenon/output2>
file_type = hdf5 # HDF5 data dump
variables = prim, drho_over_rho, dP_over_P, dK_over_K, dT_over_T, entropy, temperature, tcool_over_tff, plasma_beta, dv_x, dv_y, dv_z
dt = 10.0 # Time increment between outputs
dt = 1.0 # Time increment between outputs
id = prim # Name to append to output

<parthenon/output3>
file_type = rst # Binary data dump
dt = 10.0 # time increment between outputs
dt = 1.0 # time increment between outputs
id = restart

<parthenon/time>
cfl = 0.2 # The Courant, Friedrichs, & Lewy (CFL) Number
nlim = -1 # cycle limit
tlim = 30.0 # time limit
tlim = 3.0 # time limit
integrator = rk2 # time integration algorithm
perf_cycle_offset = 10 # interval for stdout summary info

Expand Down
8 changes: 3 additions & 5 deletions reproducer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ mv parthenon.* first_run
rm *.csv

# restart run
mpirun -np 8 ./build/bin/athenaPK -r first_run/parthenon.restart.00000.rhdf
mpirun -np 8 ./build/bin/athenaPK -r first_run/parthenon.restart.00001.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
h5diff first_run/parthenon.restart.00002.rhdf parthenon.restart.00002.rhdf

# 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
h5diff first_run/parthenon.prim.00002.phdf parthenon.prim.00002.phdf

0 comments on commit 3bc4b16

Please sign in to comment.