Map the &ocean_thermo_nml kpp_sw_method string to a
KPP_SW_* tag; -1 for an unrecognised string (fail-loud at
validate_config).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
pure function parse_kpp_sw_method(name) result(tag) !! Map the `&ocean_thermo_nml kpp_sw_method` string to a !! `KPP_SW_*` tag; `-1` for an unrecognised string (fail-loud at !! `validate_config`). character(len=*), intent(in) :: name integer :: tag select case (trim(name)) case ("all_sw") tag = KPP_SW_ALL case ("mxl_sw") tag = KPP_SW_MXL case ("lv1_sw") tag = KPP_SW_LV1 case default tag = -1 end select end function parse_kpp_sw_method