osmose.engine.processes.mortality

Mortality orchestrator for the OSMOSE Python engine.

Implements Java’s per-cell per-school interleaved mortality loop: for each sub-timestep, for each cell, all four mortality causes (predation, starvation, fishing, additional+out-of-domain) are applied in a shuffled interleaved sequence — schools and causes are both shuffled so that each cause is applied to one school at a time, updating n_dead in-place so subsequent causes see the reduced instantaneous abundance.

Functions

mortality(state, resources, config, rng, grid)

Apply all mortality sources with per-cell per-school interleaved ordering.