&vcoord_nml z_fixed_profile string -> ZFIXED_PROFILE_* code
(ZFIXED_PROFILE_INVALID for anything else — the caller fails loud).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str |
pure integer function parse_z_fixed_profile(str) result(code) !! `&vcoord_nml z_fixed_profile` string -> `ZFIXED_PROFILE_*` code !! (`ZFIXED_PROFILE_INVALID` for anything else — the caller fails loud). character(len=*), intent(in) :: str select case (trim(adjustl(str))) case ("uniform") code = ZFIXED_PROFILE_UNIFORM case ("list") code = ZFIXED_PROFILE_LIST case ("tanh") code = ZFIXED_PROFILE_TANH case default code = ZFIXED_PROFILE_INVALID end select end function parse_z_fixed_profile