Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8f84073
use ode_default_options() consistently in examples
JoshuaLampert Feb 15, 2025
2d54b79
also replace in test
JoshuaLampert Feb 15, 2025
888dc97
same for docs
JoshuaLampert Feb 15, 2025
b7464cb
same for markdown files in docs
JoshuaLampert Feb 15, 2025
4cebe93
same for benchmark
JoshuaLampert Feb 15, 2025
fb3ed59
replace commas by semicolons to separate positional args from kwargs
JoshuaLampert Feb 15, 2025
c37045d
Update docs/literate/src/files/DGMulti_1.jl
JoshuaLampert Feb 15, 2025
91b2f91
Update examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl
JoshuaLampert Feb 15, 2025
8e2f9af
Update examples/dgmulti_1d/elixir_euler_flux_diff.jl
JoshuaLampert Feb 15, 2025
14ba762
Update examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl
JoshuaLampert Feb 15, 2025
71d1cf1
format
JoshuaLampert Feb 15, 2025
7b3ddeb
Merge branch 'use-ode_default_options' of https://github.com/trixi-fr…
JoshuaLampert Feb 15, 2025
5100c88
manually fix some semicolons
JoshuaLampert Feb 15, 2025
cf5ea91
fix some more semicolons manually
JoshuaLampert Feb 15, 2025
0960bbc
fix semicolon in restart examples
JoshuaLampert Feb 15, 2025
bfac172
some more manual fixes
JoshuaLampert Feb 15, 2025
c1782c0
another manual fix
JoshuaLampert Feb 15, 2025
58012fb
manual semicolon fixes
JoshuaLampert Feb 15, 2025
b329477
Apply suggestions from code review
JoshuaLampert Feb 16, 2025
764640c
Apply suggestions from code review
JoshuaLampert Feb 17, 2025
e69f237
Merge branch 'main' into use-ode_default_options
JoshuaLampert Feb 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions benchmark/elixir_2d_euler_vortex_p4est.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback)
###############################################################################
# run the simulation

sol = solve(ode, BS3(),
save_everystep = false, callback = callbacks);
sol = solve(ode, BS3();
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions benchmark/elixir_2d_euler_vortex_structured.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback)
###############################################################################
# run the simulation

sol = solve(ode, BS3(),
save_everystep = false, callback = callbacks);
sol = solve(ode, BS3();
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions benchmark/elixir_2d_euler_vortex_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback)
###############################################################################
# run the simulation

sol = solve(ode, BS3(),
save_everystep = false, callback = callbacks);
sol = solve(ode, BS3();
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions benchmark/elixir_2d_euler_vortex_unstructured.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback)
###############################################################################
# run the simulation

sol = solve(ode, BS3(),
save_everystep = false, callback = callbacks);
sol = solve(ode, BS3();
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions benchmark/elixir_3d_euler_source_terms_structured.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback)
###############################################################################
# run the simulation

sol = solve(ode, BS3(),
save_everystep = false, callback = callbacks);
sol = solve(ode, BS3();
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions benchmark/elixir_3d_euler_source_terms_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback)
###############################################################################
# run the simulation

sol = solve(ode, BS3(),
save_everystep = false, callback = callbacks);
sol = solve(ode, BS3();
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
8 changes: 4 additions & 4 deletions docs/literate/src/files/DGMulti_1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ analysis_callback = AnalysisCallback(semi, interval = 100, uEltype = real(dg))
callbacks = CallbackSet(analysis_callback, alive_callback);

# Run the simulation with the same time integration algorithm as before.
sol = solve(ode, RDPK3SpFSAL49(), abstol = 1.0e-6, reltol = 1.0e-6,
callback = callbacks, save_everystep = false);
sol = solve(ode, RDPK3SpFSAL49(), abstol = 1.0e-6, reltol = 1.0e-6;
callback = callbacks, ode_default_options()...);
#-
using Plots
pd = PlotData2D(sol)
Expand Down Expand Up @@ -182,8 +182,8 @@ alive_callback = AliveCallback(alive_interval = 20)
analysis_callback = AnalysisCallback(semi, interval = 200, uEltype = real(dg))
callbacks = CallbackSet(alive_callback, analysis_callback);

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);
#-
using Plots
pd = PlotData2D(sol)
Expand Down
4 changes: 2 additions & 2 deletions docs/literate/src/files/adaptive_mesh_refinement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ stepsize_callback = StepsizeCallback(cfl = 0.9)
callbacks = CallbackSet(amr_callback, stepsize_callback);

# Running the simulation.
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks);
ode_default_options()..., callback = callbacks);

# We plot the solution and add the refined mesh at the end of the simulation.
using Plots
Expand Down
12 changes: 6 additions & 6 deletions docs/literate/src/files/adding_nonconservative_equation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ callbacks = CallbackSet(summary_callback, analysis_callback)

## OrdinaryDiffEq's `solve` method evolves the solution in time and executes
## the passed callbacks
sol = solve(ode, Tsit5(), abstol = 1.0e-6, reltol = 1.0e-6,
save_everystep = false, callback = callbacks)
sol = solve(ode, Tsit5(), abstol = 1.0e-6, reltol = 1.0e-6;
ode_default_options()..., callback = callbacks)

## Print the timer summary
summary_callback()
Expand Down Expand Up @@ -164,8 +164,8 @@ summary_callback = SummaryCallback()
analysis_callback = AnalysisCallback(semi, interval = 50)
callbacks = CallbackSet(summary_callback, analysis_callback);

sol = solve(ode, Tsit5(), abstol = 1.0e-6, reltol = 1.0e-6,
save_everystep = false, callback = callbacks);
sol = solve(ode, Tsit5(), abstol = 1.0e-6, reltol = 1.0e-6;
ode_default_options()..., callback = callbacks);
summary_callback()

#nb #-
Expand Down Expand Up @@ -283,8 +283,8 @@ callbacks = CallbackSet(summary_callback, analysis_callback);

## OrdinaryDiffEq's `solve` method evolves the solution in time and executes
## the passed callbacks
sol = solve(ode, Tsit5(), abstol = 1.0e-6, reltol = 1.0e-6,
save_everystep = false);
sol = solve(ode, Tsit5(), abstol = 1.0e-6, reltol = 1.0e-6;
ode_default_options()...);

## Plot the numerical solution at the final time
using Plots: plot
Expand Down
4 changes: 2 additions & 2 deletions docs/literate/src/files/behind_the_scenes_simulation_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ ode = semidiscretize(semi, (0.0, 1.0));
# the OrdinaryDiffEq.jl package can be utilized to compute an approximated solution using the
# instructions contained in the `ODEProblem` object.

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false), dt = 0.01,
save_everystep = false);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false), dt = 0.01;
ode_default_options()...);

# Since the `solve` function and the ODE solver have no knowledge
# of a particular spatial discretization, it is necessary to define a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ To generate a specific image, run the following command while replacing `"path/t
```julia
pkg> activate .
julia> include(joinpath("path/to/src", "file_name"))
```
```
8 changes: 4 additions & 4 deletions docs/literate/src/files/differentiable_programming.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function energy_at_final_time(k) # k is the wave number of the initial condition
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver,
uEltype = typeof(k))
ode = semidiscretize(semi, (0.0, 1.0))
sol = solve(ode, BS3(), save_everystep = false)
sol = solve(ode, BS3(), ode_default_options()...)
Trixi.integrate(energy_total, sol.u[end], semi)
end

Expand Down Expand Up @@ -280,7 +280,7 @@ function energy_at_final_time(k) # k is the wave number of the initial condition
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver,
uEltype = typeof(k))
ode = semidiscretize(semi, (0.0, 1.0))
sol = solve(ode, BS3(), save_everystep = false)
sol = solve(ode, BS3(), ode_default_options()...)
Trixi.integrate(energy_total, sol.u[end], semi)
end

Expand Down Expand Up @@ -330,7 +330,7 @@ semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver,
# does. This is basically the only part where you need to modify your standard Trixi.jl
# code to enable automatic differentiation. From there on, the remaining steps
ode = semidiscretize(semi, (0.0, 1.0))
sol = solve(ode, BS3(), save_everystep = false)
sol = solve(ode, BS3(), ode_default_options()...)
round(Trixi.integrate(energy_total, sol.u[end], semi), sigdigits = 5)
@test round(Trixi.integrate(energy_total, sol.u[end], semi), sigdigits = 5) == 0.24986 #src

Expand Down Expand Up @@ -362,7 +362,7 @@ semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition_convergen

ode = semidiscretize(semi, (0.0, 1.5))

sol = solve(ode, BS3(), save_everystep = false);
sol = solve(ode, BS3(), ode_default_options()...);

plot(sol)

Expand Down
2 changes: 1 addition & 1 deletion docs/literate/src/files/first_steps/create_first_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback,
# need to save every step of the solution, as we are only interested the output provided by
# our callback [`SaveSolutionCallback`](@ref).

sol = solve(ode, SSPRK33(); dt = 1.0, save_everystep = false, callback = callbacks);
sol = solve(ode, SSPRK33(); dt = 1.0, ode_default_options()..., callback = callbacks);

# Finally, we print the timer summary.

Expand Down
4 changes: 2 additions & 2 deletions docs/literate/src/files/hohqmesh_tutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ callbacks = CallbackSet(summary_callback, save_solution, stepsize_callback)

redirect_stdio(stdout = devnull, stderr = devnull) do # code that prints annoying stuff we don't want to see here #hide #md
## Evolve ODE problem in time using `solve` from OrdinaryDiffEq
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks)
ode_default_options()..., callback = callbacks)
## print the timer summary
summary_callback()
end #hide #md
Expand Down
4 changes: 2 additions & 2 deletions docs/literate/src/files/non_periodic_boundaries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ callbacks = CallbackSet(analysis_callback,
visnodes = range(tspan[1], tspan[2], length = 300)

# and run the simulation.
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, saveat = visnodes, callback = callbacks);
ode_default_options()..., saveat = visnodes, callback = callbacks);

using Plots
@gif for step in eachindex(sol.u)
Expand Down
4 changes: 2 additions & 2 deletions docs/literate/src/files/shock_capturing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ callbacks = CallbackSet(analysis_callback, stepsize_callback);
stage_limiter! = PositivityPreservingLimiterZhangShu(thresholds = (5.0e-6, 5.0e-6),
variables = (Trixi.density, pressure))

sol = solve(ode, CarpenterKennedy2N54(stage_limiter!, williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(stage_limiter!, williamson_condition = false);
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks);
ode_default_options()..., callback = callbacks);

using Plots
plot(sol)
Expand Down
8 changes: 4 additions & 4 deletions docs/literate/src/files/structured_mesh_mapping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ callbacks = CallbackSet(analysis_callback,
stepsize_callback);

# Running the simulation
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks);
ode_default_options()..., callback = callbacks);

using Plots
plot(sol)
Expand Down Expand Up @@ -165,9 +165,9 @@ stepsize_callback = StepsizeCallback(cfl = 0.8)
callbacks = CallbackSet(analysis_callback,
stepsize_callback)

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks);
ode_default_options()..., callback = callbacks);

# Now, we want to verify the free-stream preservation property and plot the mesh. For the verification,
# we calculate the absolute difference of the first conservation variable density `u[1]` and `1.0`.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ In general, in the case of integer numbers, our developers should apply a case-b
### Notes
1. If the function gets a local pointwise vector of the solution variables `u` such as `flux(u, equations)`, use `u` to determine the real type `eltype(u)`.
2. If `u` is not passed as an argument but a vector of coordinates `x` such as `initial_condition(x, t, equations)`, use `eltype(x)` instead.
3. Choose an appropriate argument to determine the real type otherwise.
3. Choose an appropriate argument to determine the real type otherwise.
2 changes: 1 addition & 1 deletion docs/src/meshes/p4est_mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,4 +599,4 @@ A simple mesh file, which is used also in `examples/p4est_3d_dgsem/elixir_euler_
74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
94, 95, 96, 97, 98,
```
```
6 changes: 3 additions & 3 deletions docs/src/time_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ With everything set up, you can now use `Trixi.solve` to solve the ODE problem.

```@example PERK-example-1
# Solve the ODE problem using PERK2
sol = Trixi.solve(ode, ode_algorithm,
sol = Trixi.solve(ode, ode_algorithm;
dt = 1.0, # overwritten by `stepsize_callback`
save_everystep = false, callback = callbacks)
ode_default_options()..., callback = callbacks)
```

##### Advanced constructors:
Expand Down Expand Up @@ -212,4 +212,4 @@ Then, the stable CFL number can be computed as described above.
##### Single/Standalone methods

- [`Trixi.PairedExplicitRK2`](@ref): Second-order PERK method with at least two stages.
- [`Trixi.PairedExplicitRK3`](@ref): Third-order PERK method with at least three stages.
- [`Trixi.PairedExplicitRK3`](@ref): Third-order PERK method with at least three stages.
4 changes: 2 additions & 2 deletions examples/dgmulti_1d/elixir_advection_gauss_sbp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ callbacks = CallbackSet(summary_callback, analysis_callback, stepsize_callback)
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 1.0, save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, ode_default_options()..., callback = callbacks);

# Print the timer summary
summary_callback()
4 changes: 2 additions & 2 deletions examples/dgmulti_1d/elixir_burgers_gauss_shock_capturing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ callbacks = CallbackSet(summary_callback, analysis_callback, stepsize_callback)
# ###############################################################################
# # run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 1.0, save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, ode_default_options()..., callback = callbacks);
4 changes: 2 additions & 2 deletions examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ callbacks = CallbackSet(summary_callback, alive_callback, stepsize_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions examples/dgmulti_1d/elixir_euler_flux_diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ callbacks = CallbackSet(summary_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);

summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions examples/dgmulti_1d/elixir_euler_quasi_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ callbacks = CallbackSet(summary_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks);
ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ callbacks = CallbackSet(summary_callback, analysis_callback, stepsize_callback)
# ###############################################################################
# # run the simulation

sol = solve(ode, SSPRK43(), adaptive = false,
sol = solve(ode, SSPRK43(), adaptive = false;
dt = 1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
callback = callbacks, save_everystep = false)
callback = callbacks, ode_default_options()...)
4 changes: 2 additions & 2 deletions examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ callbacks = CallbackSet(summary_callback, alive_callback, stepsize_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ callbacks = CallbackSet(summary_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);

summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ callbacks = CallbackSet(summary_callback, alive_callback, analysis_callback)
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions examples/dgmulti_2d/elixir_euler_weakform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ callbacks = CallbackSet(summary_callback, alive_callback, stepsize_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions examples/dgmulti_2d/elixir_euler_weakform_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ callbacks = CallbackSet(summary_callback, alive_callback, analysis_callback)
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
dt = 0.5 * estimate_dt(mesh, dg), save_everystep = false, callback = callbacks);
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 0.5 * estimate_dt(mesh, dg), ode_default_options()..., callback = callbacks);
summary_callback() # print the timer summary
4 changes: 2 additions & 2 deletions examples/dgmulti_2d/elixir_mhd_reflective_wall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ callbacks = CallbackSet(summary_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false),
sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false);
dt = 1e-5, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep = false, callback = callbacks);
ode_default_options()..., callback = callbacks);

summary_callback() # print the timer summary
Loading
Loading