lax_friedrichs_split_both Subroutine

private pure subroutine lax_friedrichs_split_both(q, fp, fm, gam)

Fused Lax-Friedrichs flux splitting: returns F^+ and F^- in one call.

Equivalent to calling lax_friedrichs_split twice (sign=+1 and sign=-1), but extracts primitives and computes the Euler flux only once per cell.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: q(:)
real(kind=wp), intent(out) :: fp(:)
real(kind=wp), intent(out) :: fm(:)
real(kind=wp), intent(in) :: gam

Ratio of specific heats.