From e44b9cf173a2f4cd1fc763f449bcafc0c91d9964 Mon Sep 17 00:00:00 2001 From: bennibolm Date: Mon, 27 Nov 2023 13:38:21 +0100 Subject: [PATCH] Adapt test errors after normalizing normal vectors --- .../elixir_euler_double_mach.jl | 3 +- .../elixir_euler_double_mach_MCL.jl | 3 +- test/test_structured_2d.jl | 32 +++++++++---------- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/examples/structured_2d_dgsem/elixir_euler_double_mach.jl b/examples/structured_2d_dgsem/elixir_euler_double_mach.jl index 1b268422e1f..68692de3426 100644 --- a/examples/structured_2d_dgsem/elixir_euler_double_mach.jl +++ b/examples/structured_2d_dgsem/elixir_euler_double_mach.jl @@ -76,8 +76,7 @@ end @inline function Trixi.get_boundary_outer_state(u_inner, cache, t, boundary_condition::typeof(boundary_condition_mixed_characteristic_wall), normal_direction::AbstractVector, direction, - equations, - dg, indices...) + equations, dg, indices...) x = Trixi.get_node_coords(cache.elements.node_coordinates, equations, dg, indices...) if x[1] < 1 / 6 # BoundaryConditionCharacteristic u_outer = Trixi.characteristic_boundary_value_function(initial_condition_double_mach_reflection, diff --git a/examples/structured_2d_dgsem/elixir_euler_double_mach_MCL.jl b/examples/structured_2d_dgsem/elixir_euler_double_mach_MCL.jl index ad537b49684..932a33db2ef 100644 --- a/examples/structured_2d_dgsem/elixir_euler_double_mach_MCL.jl +++ b/examples/structured_2d_dgsem/elixir_euler_double_mach_MCL.jl @@ -76,8 +76,7 @@ end @inline function Trixi.get_boundary_outer_state(u_inner, cache, t, boundary_condition::typeof(boundary_condition_mixed_characteristic_wall), normal_direction::AbstractVector, direction, - equations, - dg, indices...) + equations, dg, indices...) x = Trixi.get_node_coords(cache.elements.node_coordinates, equations, dg, indices...) if x[1] < 1 / 6 # BoundaryConditionCharacteristic u_outer = Trixi.characteristic_boundary_value_function(initial_condition_double_mach_reflection, diff --git a/test/test_structured_2d.jl b/test/test_structured_2d.jl index 50f032e9e0a..8061d62705a 100644 --- a/test/test_structured_2d.jl +++ b/test/test_structured_2d.jl @@ -695,16 +695,16 @@ end @test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_shock_upstream_sc_subcell.jl"), l2=[ - 1.2351650580585378, - 1.1268555757641623, - 1.723421391322672, - 11.715156856828612, + 1.2360964282793594, + 1.1280398030799386, + 1.7267648591561005, + 11.7190241252948, ], linf=[ - 5.378363125399197, - 6.5624165241817245, - 10.008377369949162, - 51.24533429408666, + 5.393863681425582, + 6.476830142076269, + 10.13110957325047, + 49.922573759404, ], tspan=(0.0, 0.5)) # Ensure that we do not have excessive memory allocations @@ -720,16 +720,16 @@ end @trixi_testset "elixir_euler_shock_upstream_MCL.jl" begin @test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_shock_upstream_MCL.jl"), l2=[ - 1.2607430289878367, - 1.1565837325291748, - 1.779179030245946, - 11.891223800389836, + 1.2655219565562812, + 1.1981291403309833, + 1.7964926709729876, + 11.968876601483794, ], linf=[ - 5.68876088478026, - 8.16555442595031, - 10.859100194836678, - 50.258224089906975, + 5.675285252773072, + 10.063582862371597, + 12.3837111905078, + 51.34700027665198, ], tspan=(0.0, 0.5)) # Ensure that we do not have excessive memory allocations