.true. iff all four cells contributing to a corner sample are
wet. The masks are real 0/1 (ocean_metrics_t%wet_T), so the
test is a mid-point comparison rather than an equality.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | w1 | |||
| real(kind=wp), | intent(in) | :: | w2 | |||
| real(kind=wp), | intent(in) | :: | w3 | |||
| real(kind=wp), | intent(in) | :: | w4 |
pure function corner_is_wet(w1, w2, w3, w4) result(ok) !! `.true.` iff all four cells contributing to a corner sample are !! wet. The masks are real 0/1 (`ocean_metrics_t%wet_T`), so the !! test is a mid-point comparison rather than an equality. real(wp), intent(in) :: w1, w2, w3, w4 logical :: ok ok = (w1 > 0.5_wp) .and. (w2 > 0.5_wp) .and. & (w3 > 0.5_wp) .and. (w4 > 0.5_wp) end function corner_is_wet