&ocean_cavity_dyn_nml draft_sign -> CAVITY_SIGN_*.
Returns CAVITY_SIGN_INVALID on an unrecognised spelling — the
caller fails loud.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
pure function parse_cavity_draft_sign(name) result(code) !! `&ocean_cavity_dyn_nml draft_sign` -> `CAVITY_SIGN_*`. !! Returns `CAVITY_SIGN_INVALID` on an unrecognised spelling — the !! caller fails loud. character(len=*), intent(in) :: name integer :: code select case (trim(adjustl(name))) case ("depth", "positive_down", "") code = CAVITY_SIGN_DEPTH case ("elevation", "positive_up") code = CAVITY_SIGN_ELEVATION case default code = CAVITY_SIGN_INVALID end select end function parse_cavity_draft_sign