Skip to content

Commit 05a01e1

Browse files
author
Steve
committed
Add CI test
1 parent 0e2ea48 commit 05a01e1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/test_parabolic_2d.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,21 @@ end
321321
end
322322
end
323323

324+
@trixi_testset "TreeMesh2D: elixir_advection_diffusion_implicit_sparse_jacobian.jl" begin
325+
@test_trixi_include(joinpath(examples_dir(), "tree_2d_dgsem",
326+
"elixir_advection_diffusion_implicit_sparse_jacobian.jl"),
327+
initial_refinement_level=4, tspan=(0.0, 0.4), polydeg=3,
328+
l2=[4.3996570276332366e-5], linf=[7.656808122324943e-5])
329+
# Ensure that we do not have excessive memory allocations
330+
# (e.g., from type instabilities)
331+
let
332+
t = sol.t[end]
333+
u_ode = sol.u[end]
334+
du_ode = similar(u_ode)
335+
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi_float_type, t)) < 1000
336+
end
337+
end
338+
324339
@trixi_testset "TreeMesh2D: elixir_navierstokes_convergence.jl" begin
325340
@test_trixi_include(joinpath(examples_dir(), "tree_2d_dgsem",
326341
"elixir_navierstokes_convergence.jl"),

0 commit comments

Comments
 (0)