minmod2 Function

private pure elemental function minmod2(a, b) result(m)

Two-argument minmod function. Returns the value with the smaller magnitude if a and b have the same sign, else 0.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: a
real(kind=wp), intent(in) :: b

Return Value real(kind=wp)