Skip to content

Commit 1aa2762

Browse files
author
Johannes Markert
committed
Added baroclinic instab. test.
1 parent 6076354 commit 1aa2762

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

test/test_dgmulti_3d.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,37 @@ end
419419
end
420420
end
421421

422+
@trixi_testset "elixir_euler_baroclinic_instability.jl" begin
423+
@test_trixi_include(joinpath(EXAMPLES_DIR,
424+
"elixir_euler_baroclinic_instability.jl"),
425+
l2=[
426+
1.922609436676713e-7,
427+
8.510564833848403e-5,
428+
0.0001101753651355995,
429+
9.775492232730066e-5,
430+
0.044297547090262346
431+
],
432+
linf=[
433+
1.85020498180144e-5,
434+
0.01016720737571257,
435+
0.010778284009676758,
436+
0.009668154469787194,
437+
4.187203206616687
438+
],
439+
tspan=(0.0, 1e2),
440+
# Decrease tolerance of adaptive time stepping to get similar results across different systems
441+
abstol=1.0e-9, reltol=1.0e-9,
442+
coverage_override=(trees_per_cube_face = (1, 1), polydeg = 3)) # Prevent long compile time in CI
443+
# Ensure that we do not have excessive memory allocations
444+
# (e.g., from type instabilities)
445+
let
446+
t = sol.t[end]
447+
u_ode = sol.u[end]
448+
du_ode = similar(u_ode)
449+
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000
450+
end
451+
end
452+
422453
end
423454

424455
# Clean up afterwards: delete Trixi.jl output directory

0 commit comments

Comments
 (0)