Skip to content

Commit

Permalink
Added p4est mesh view into tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCan committed Dec 19, 2024
1 parent 4264718 commit b56d1d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_p4est_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,20 @@ end
end
end

@trixi_testset "elixir_advection_view.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_view.jl"),
l2=[0.00013773915040249946],
linf=[0.0010140184322192658])
# 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_euler_source_terms_nonconforming_unstructured_flag.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR,
"elixir_euler_source_terms_nonconforming_unstructured_flag.jl"),
Expand Down

0 comments on commit b56d1d7

Please sign in to comment.