Skip to content

Commit

Permalink
Use euler
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Feb 8, 2024
1 parent d76c8e2 commit 99a7152
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/tree_1d_dgsem/elixir_traffic_flow_lwr_trafficjam.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ analysis_callback = AnalysisCallback(semi, interval = analysis_interval)

alive_callback = AliveCallback(analysis_interval = analysis_interval)

stepsize_callback = StepsizeCallback(cfl = 2.0)
stepsize_callback = StepsizeCallback(cfl = 1.0)

callbacks = CallbackSet(summary_callback,
analysis_callback, alive_callback,
Expand All @@ -74,8 +74,8 @@ callbacks = CallbackSet(summary_callback,
###############################################################################
# run the simulation

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

summary_callback() # print the timer summary
summary_callback() # print the timer summary
2 changes: 1 addition & 1 deletion test/test_tree_1d_traffic_flow_lwr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end

@trixi_testset "elixir_traffic_flow_lwr_trafficjam.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_traffic_flow_lwr_trafficjam.jl"),
l2=[0.17591004141761846], linf=[0.5])
l2=[0.1761758135539748], linf=[0.5])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down

0 comments on commit 99a7152

Please sign in to comment.