&ocean_forcing_nml enable_components=.true. with
&ocean_thermo_nml enable_thermodynamics=.false. is a
configuration that validates but does nothing (the component
set only feeds the assembler->apply_tracers thermo path) —
named predicate per the lateral_closure_is_implemented idiom
so validate_config reads as one line.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | enable_components | |||
| logical, | intent(in) | :: | enable_thermodynamics |
pure logical function forcing_components_need_thermo(enable_components, & enable_thermodynamics) result(bad) !! `&ocean_forcing_nml enable_components=.true.` with !! `&ocean_thermo_nml enable_thermodynamics=.false.` is a !! configuration that validates but does nothing (the component !! set only feeds the assembler->apply_tracers thermo path) — !! named predicate per the `lateral_closure_is_implemented` idiom !! so `validate_config` reads as one line. logical, intent(in) :: enable_components, enable_thermodynamics bad = enable_components .and. .not. enable_thermodynamics end function forcing_components_need_thermo