JGCRI / hector

The Hector Simple Climate Model
http://jgcri.github.io/hector/
GNU General Public License v3.0
107 stars 45 forks source link

NBP constraint crashes model in some circumstances #737

Open bpbond opened 3 months ago

bpbond commented 3 months ago

@jk-brown and @kendalynnm have found a case where supplying the model with an NBP constraint crashes it. 💥

Our automated tests currently check that things are OK with a 21st-century constraint...but giving a 100-year 20th century constraint causes a crash.

bpbond commented 2 months ago

The proximal cause of the crash was a fluxpool negative-value error. This is easy to fix/work around...

But the deeper issue is that there's some issue with the NBP constraint logic, and the model is having to work increasingly hard to meet it the constraint (eventually transferring tens of Pg C to the deep ocean before crashing with a mass balance error in the middle of the 21st century). 😕

bpbond commented 2 months ago

Stopping point for now