Skip to content

Commit

Permalink
Limit timestep
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrete committed Sep 5, 2024
1 parent 69cd18b commit ce26db7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def Prepare(self, parameters, step):
"parthenon/output0/id=%s" % outname,
"hydro/gamma=2.0",
"parthenon/time/tlim=%f" % tlim,
# Work around for RKL2 integrator (that, by default, does not limit the
# timestep, which in newer versions of Parthenon results in triggering
# a fail-safe given the default init value of numeric_limits max.
"parthenon/time/dt_ceil=%f" % tlim,
"diffusion/conduction=%s" % conduction,
"diffusion/thermal_diff_coeff_code=0.25",
"diffusion/integrator=%s" % int_cfg,
Expand Down

0 comments on commit ce26db7

Please sign in to comment.