Skip to content

g24 Model3: stop deglaciation at zero ice volume - #60

Merged
CommonClimate merged 1 commit into
mainfrom
fix/g24-nonnegative-ice
Nov 18, 2026
Merged

CommonClimate merged 1 commit into
mainfrom
fix/g24-nonnegative-ice

Conversation

@CommonClimate

Copy link
Copy Markdown
Contributor

Refs #58. This fixes one g24 behaviour; the regime-switching redesign tracked in #58 is still open.

Problem

In the deglaciation regime (k = 2), Model3.dydt returned dv/dt = -vc / t2 unconditionally, so ice volume kept decreasing past zero until f < f1 restarted glaciation. Ganopolski (2024) requires v >= 0: ice volume declines linearly to zero and then stays ice-free.

Change

  • dvdt = -vc / t2 if v > 0 else 0.0 in regime k = 2; docstring updated ("until v = 0").
  • New TestSignalModelsG24NonNegativeIce: with the orbital forcing (calc_f) and time-varying vc over t = −2000…0 kyr (RK45, max_step=0.5), v stays ≥ 0, up to one solver step of overshoot (min > -0.1), while glacial cycles still develop (max > 1).

Notes

Reference: Ganopolski, A., 2024: Toward generalized Milankovitch theory, Clim. Past, 20, 151–185, doi:10.5194/cp-20-151-2024.

🤖 Generated with Claude Code

Ganopolski (2024) requires v >= 0: in regime k=2 ice volume declines
linearly to zero and then stays ice-free until f < f1 restarts
glaciation. Previously dv/dt = -vc/t2 kept driving v negative.
Adds a regression test that v stays >= 0 (up to one step of overshoot)
while glacial cycles still develop.

Refs #58 (the regime-switching redesign itself is still open).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CommonClimate
CommonClimate merged commit 2a55161 into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant