.true. when evap/lprec are file-driven but the
surface-flux component set they write into is switched off.
Note the polarity: this reports the PROBLEM, not validity —
named for how it reads at the call site.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ocean_dataovr_config_t), | intent(in) | :: | cfg | |||
| logical, | intent(in) | :: | use_components |
pure function dataovr_freshwater_needs_components(cfg, use_components) result(bad) !! `.true.` when `evap`/`lprec` are file-driven but the !! surface-flux component set they write into is switched off. !! Note the polarity: this reports the PROBLEM, not validity — !! named for how it reads at the call site. type(ocean_dataovr_config_t), intent(in) :: cfg logical, intent(in) :: use_components logical :: bad bad = (len_trim(cfg%evap%file) > 0 .or. len_trim(cfg%lprec%file) > 0) & .and. (.not. use_components) end function dataovr_freshwater_needs_components