Skip to content

Commit

Permalink
Adapt test errors after normalizing normal vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Nov 27, 2023
1 parent ee2d331 commit e44b9cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
3 changes: 1 addition & 2 deletions examples/structured_2d_dgsem/elixir_euler_double_mach.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions examples/structured_2d_dgsem/elixir_euler_double_mach_MCL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
32 changes: 16 additions & 16 deletions test/test_structured_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e44b9cf

Please sign in to comment.