Compares argument psi to chosen psi_max, returning step function.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in) | :: | psi | |||
real(kind=rp), | intent(in) | :: | psi_max |
FUNCTION indicator(psi,psi_max)
!! Compares argument psi to chosen psi_max, returning step function.
REAL(rp), INTENT(IN) :: psi
REAL(rp), INTENT(IN) :: psi_max
REAL(rp) :: indicator
IF (psi.LT.psi_max) THEN
indicator=1
ELSE
indicator=0
END IF
END FUNCTION indicator