Skip to content

photochem v0.9.2

Choose a tag to compare

@Nicholaswogan Nicholaswogan released this 02 Oct 15:20
· 36 commits to main since this release

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 base EvoAtmosphere default. 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 by hydro_pressure. Prefer keyword arguments for optional settings; scalar defaults generally replace None.
  • TOA-specific failure and update-interval controls are replaced by var.max_resync_failures and var.nsteps_before_reinit. Shared diagnostics include wrk.n_resync_failures and wrk.nconverged_but_restarted.
  • Older gas giant dictionaries missing required state fields are rejected.