Skip to content

Commit

Permalink
Update src/semidiscretization/semidiscretization_coupled.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Winters <[email protected]>
  • Loading branch information
SimonCan and andrewwinters5000 authored Mar 14, 2024
1 parent 2114a81 commit 55cf043
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
Expand Up @@ -438,15 +438,15 @@ function (boundary_condition::BoundaryConditionCoupled)(u_inner, orientation, di
if surface_flux_function isa Tuple
# In case of conservative and non-conservative fluxes add the non-conservative one with a factor of 1/2.
if iseven(direction) # u_inner is "left" of boundary, u_boundary is "right" of boundary
flux = surface_flux_function[1](u_inner, u_boundary, orientation,
flux = (surface_flux_function[1](u_inner, u_boundary, orientation,
equations) +
0.5 *
surface_flux_function[2](u_inner, u_boundary, orientation, equations)
surface_flux_function[2](u_inner, u_boundary, orientation, equations))
else # u_boundary is "left" of boundary, u_inner is "right" of boundary
flux = surface_flux_function[1](u_boundary, u_inner, orientation,
flux = (surface_flux_function[1](u_boundary, u_inner, orientation,
equations) +
0.5 *
surface_flux_function[2](u_boundary, u_inner, orientation, equations)
surface_flux_function[2](u_boundary, u_inner, orientation, equations))
end
else
if iseven(direction) # u_inner is "left" of boundary, u_boundary is "right" of boundary
Expand Down

0 comments on commit 55cf043

Please sign in to comment.