.true. iff pseudo-salt is enabled with thermodynamics off.
NOT a hard error — pseudo-salt still measures pure transport,
a legitimate use — but the caller should warn: without
thermodynamics, the tracer never receives the surface salt
flux / KPP nonlocal mirrors, so D degenerates to a pure
advection/diffusion probe.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | enable_ps | |||
| logical, | intent(in) | :: | enable_thermodynamics |
pure function pseudo_salt_needs_thermo_warning(enable_ps, enable_thermodynamics) & result(warn) !! `.true.` iff pseudo-salt is enabled with thermodynamics off. !! NOT a hard error — pseudo-salt still measures pure transport, !! a legitimate use — but the caller should warn: without !! thermodynamics, the tracer never receives the surface salt !! flux / KPP nonlocal mirrors, so `D` degenerates to a pure !! advection/diffusion probe. logical, intent(in) :: enable_ps logical, intent(in) :: enable_thermodynamics logical :: warn warn = enable_ps .and. .not. enable_thermodynamics end function pseudo_salt_needs_thermo_warning