Skip to content

Commit

Permalink
Fix normalization; Is done inside boundary_value_function
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Nov 30, 2023
1 parent a3fdfc0 commit 28f221b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 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 @@ -83,8 +83,7 @@ end
if x[1] < 1 / 6 # BoundaryConditionCharacteristic
u_outer = Trixi.characteristic_boundary_value_function(initial_condition_double_mach_reflection,
u_inner,
normal_direction /
norm(normal_direction),
normal_direction,
direction, x, t, equations)

else # if x[1] >= 1 / 6 # boundary_condition_slip_wall
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 @@ -83,8 +83,7 @@ end
if x[1] < 1 / 6 # BoundaryConditionCharacteristic
u_outer = Trixi.characteristic_boundary_value_function(initial_condition_double_mach_reflection,
u_inner,
normal_direction /
norm(normal_direction),
normal_direction,
direction, x, t, equations)

else # if x[1] >= 1 / 6 # boundary_condition_slip_wall
Expand Down
12 changes: 6 additions & 6 deletions src/equations/equations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ end
x, t,
surface_flux_function,
equations)
u_boundary = characteristic_boundary_value_function(boundary_condition.outer_boundary_value_function,
u_inner, orientation_or_normal,
direction, x, t, equations)
u_boundary = boundary_condition.boundary_value_function(boundary_condition.outer_boundary_value_function,
u_inner, orientation_or_normal,
direction, x, t, equations)

# Calculate boundary flux
if iseven(direction) # u_inner is "left" of boundary, u_boundary is "right" of boundary
Expand All @@ -248,9 +248,9 @@ end
x, t,
surface_flux_function,
equations)
u_boundary = characteristic_boundary_value_function(boundary_condition.outer_boundary_value_function,
u_inner, normal_direction, x, t,
equations)
u_boundary = boundary_condition.boundary_value_function(boundary_condition.outer_boundary_value_function,
u_inner, normal_direction, x, t,
equations)

# Calculate boundary flux
flux = surface_flux_function(u_inner, u_boundary, normal_direction, equations)
Expand Down
3 changes: 1 addition & 2 deletions src/solvers/dgsem_tree/dg_2d_subcell_limiters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1889,8 +1889,7 @@ end

u_outer = boundary_condition.boundary_value_function(boundary_condition.outer_boundary_value_function,
u_inner,
normal_direction /
norm(normal_direction),
normal_direction,
direction, x, t, equations)

return u_outer
Expand Down

0 comments on commit 28f221b

Please sign in to comment.