polaris.tasks.ocean.realistic_global.dynamic_adjustment.checks.check_temperature_min

polaris.tasks.ocean.realistic_global.dynamic_adjustment.checks.check_temperature_min(value: float | None, when: float | None, temperature_min: float, stage_name: str, logger: Any) → None[source]

Raise if the stage’s minimum temperature falls below the threshold.

The lower counterpart to check_temperature_max(). Without surface heat loss, water colder than anything in the initial condition can only come from the numerics – a tracer update that is not monotone, say, in a thin partial bottom cell – and it can do so without the run blowing up, so a maximum alone would not catch it.

See check_temperature_max() for the arguments; value is the smallest temperature reached in the stage.