Skip to content

Commit

Permalink
Use a single elixir to test EC and EC+LLF
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Dec 10, 2024
1 parent feac4b8 commit 2d8c833
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 65 deletions.
62 changes: 0 additions & 62 deletions examples/tree_2d_dgsem/elixir_mhdmultiion_ec+llf.jl

This file was deleted.

23 changes: 20 additions & 3 deletions test/test_tree_2d_mhdmultiion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,18 @@ EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "tree_2
0.6078381519649727,
0.00673110606965085
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
t = sol.t[end]
u_ode = sol.u[end]
du_ode = similar(u_ode)
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000
end
end

@trixi_testset "elixir_mhdmultiion_ec+llf.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_mhdmultiion_ec+llf.jl"),
@trixi_testset "elixir_mhdmultiion_ec.jl with local Lax-Friedrichs at the surface" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_mhdmultiion_ec.jl"),
l2=[
0.017668026737187294,
0.017797845988889206,
Expand Down Expand Up @@ -80,7 +88,16 @@ end
0.08694877996306204,
0.49493751138636366,
0.003287414714660175
])
],
surface_flux=(flux_lax_friedrichs, flux_nonconservative_central))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
t = sol.t[end]
u_ode = sol.u[end]
du_ode = similar(u_ode)
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000
end
end
end

Expand Down

0 comments on commit 2d8c833

Please sign in to comment.