limit_pos_2d Subroutine

private pure subroutine limit_pos_2d(qf, qa, gam)

Zhang-Shu positivity limiter for a 2D Euler face state (neq2d=4). Blends the reconstructed face state toward the cell average until density rho >= eps and pressure p >= eps. A no-op in smooth regions.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(inout) :: qf(neq2d)
real(kind=wp), intent(in) :: qa(neq2d)
real(kind=wp), intent(in) :: gam