Path: blob/main/test/test_tree_1d_linearizedeuler.jl
5582 views
1using Test2using Trixi34include("test_trixi.jl")56EXAMPLES_DIR = joinpath(examples_dir(), "tree_1d_dgsem")78@testset "Linearized Euler Equations 1D" begin9#! format: noindent1011@trixi_testset "elixir_linearizedeuler_convergence.jl" begin12@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_linearizedeuler_convergence.jl"),13l2=[140.00010894927270421941,150.00014295255695912358,160.0001089492727042194117],18linf=[190.0005154647164193893,200.00048457837684242266,210.000515464716419389322])23# Ensure that we do not have excessive memory allocations24# (e.g., from type instabilities)25@test_allocations(Trixi.rhs!, semi, sol, 1000)26end2728@trixi_testset "elixir_linearizedeuler_gauss_wall.jl" begin29@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_linearizedeuler_gauss_wall.jl"),30l2=[0.650082087850354, 0.2913911415488769, 0.650082087850354],31linf=[321.9999505145390108,330.9999720404625275,341.999950514539010835])36# Ensure that we do not have excessive memory allocations37# (e.g., from type instabilities)38@test_allocations(Trixi.rhs!, semi, sol, 1000)39end40end414243