Skip to content

Commit

Permalink
add ode_default_options() here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
benegee committed Jun 6, 2024
1 parent a5cd379 commit 96b40c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/tree_2d_dgsem/elixir_advection_restart.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ save_solution.condition.save_initial_solution = false

integrator = init(ode, alg,
dt = dt, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks, maxiters = 100_000)
callback = callbacks;
ode_default_options()...); # default options because an adaptive time stepping method is used in test_mpi_tree.jl

# Load saved context for adaptive time integrator
if integrator.opts.adaptive
Expand Down

0 comments on commit 96b40c3

Please sign in to comment.