Fail-loud predicate for the &ocean_thermo_nml sw_source
selector — validate_config aborts on any string this rejects.
The two recognised sources are the net-heat legacy path and the
PR-12 q_sw component.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
pure function sw_source_is_implemented(name) result(ok) !! Fail-loud predicate for the `&ocean_thermo_nml sw_source` !! selector — `validate_config` aborts on any string this rejects. !! The two recognised sources are the net-heat legacy path and the !! PR-12 `q_sw` component. character(len=*), intent(in) :: name logical :: ok ok = (trim(name) == "net_heat" .or. trim(name) == "q_sw") end function sw_source_is_implemented