Skip to content

Commit

Permalink
lower ode_max_steps and make burn retry on by default
Browse files Browse the repository at this point in the history
experience with science problems has shown that, especially on GPUs,
one zone can take ode_max_steps and then fail, forcing the application
code to deal with it (e.g. Castro retries).  But often using the
burn retry functionality (in particular swapping the Jacobian)
makes the zone pass.

This change lowers ode_max_steps from 150000 to 25000 and turns
on the retry (which only enables Jacobian swapping by default).
This should help with a lot of applications, although lowering
ode_max_steps more can help further.
  • Loading branch information
zingale committed Jul 31, 2024
1 parent 727afa9 commit a97fc2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/_parameters
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MAX_TEMP real 1.0e11
react_boost real -1.e0

# maximum number of timesteps for the integrator
ode_max_steps int 150000
ode_max_steps int 25000

# maximum timestep for the integrator
ode_max_dt real 1.e30
Expand All @@ -60,7 +60,7 @@ nonaka_level int 0
nonaka_file string "nonaka_plot.dat"

# do we retry a failed burn with different parameters?
use_burn_retry bool 0
use_burn_retry bool 1

# do we swap the Jacobian (from analytic to numerical or vice versa) on
# a retry?
Expand Down

0 comments on commit a97fc2c

Please sign in to comment.