File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 419
419
end
420
420
end
421
421
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
+
422
453
end
423
454
424
455
# Clean up afterwards: delete Trixi.jl output directory
You can’t perform that action at this time.
0 commit comments