Repository navigation
photochem v0.9.2
Periodic P–T–Kzz synchronization was added to improve integration stability after we found cases where continuous synchronization caused oscillations and prevented convergence. Periodic mode holds temperature and eddy diffusion fixed between resynchronizations, then requires chemistry to reconverge after updates.
Highlights
- Gas giant initialization defaults to periodic synchronization (
mode=0). Continuous synchronization (mode=1) remains available and is still the baseEvoAtmospheredefault. Periodic profiles and TOA maintenance require the robust stepper. - Robust integration coordinates TOA and profile maintenance, handles extreme mismatches immediately, and permits recoverable measurement/resync failures through a shared retry limit.
- Gas giant save/restore preserves the exact installed profile and its settings, validates inputs, and copies saved arrays independently. It does not restore solver history or integration time.
API compatibility
- Pressure-profile initialization accepts integer
mode, followed byhydro_pressure. Prefer keyword arguments for optional settings; scalar defaults generally replaceNone. - TOA-specific failure and update-interval controls are replaced by
var.max_resync_failuresandvar.nsteps_before_reinit. Shared diagnostics includewrk.n_resync_failuresandwrk.nconverged_but_restarted. - Older gas giant dictionaries missing required state fields are rejected.