Path: blob/main/test/test_tree_1d_traffic_flow_lwr.jl
5582 views
module TestExamples1DTrafficFlowLWR12using Test3using Trixi45include("test_trixi.jl")67EXAMPLES_DIR = joinpath(examples_dir(), "tree_1d_dgsem")89@testset "Traffic-flow LWR" begin10#! format: noindent1112@trixi_testset "elixir_traffic_flow_lwr_convergence.jl" begin13@test_trixi_include(joinpath(EXAMPLES_DIR,14"elixir_traffic_flow_lwr_convergence.jl"),15l2=[0.0008455067389588569],16linf=[0.004591951086623913])17# Ensure that we do not have excessive memory allocations18# (e.g., from type instabilities)19@test_allocations(Trixi.rhs!, semi, sol, 1000)20end2122@trixi_testset "elixir_traffic_flow_lwr_trafficjam.jl" begin23@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_traffic_flow_lwr_trafficjam.jl"),24l2=[0.1761758135539748], linf=[0.5])25# Ensure that we do not have excessive memory allocations26# (e.g., from type instabilities)27@test_allocations(Trixi.rhs!, semi, sol, 1000)28end29end3031end # module323334