edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
24 stars 6 forks source link

Restartability #67

Closed axch closed 7 years ago

axch commented 7 years ago

When a model run ends (ideally including interruption by an appropriate polite unix signal, like SIGHUP), it should dump all of its internal state (including tendencies), so that it can be restarted from that point.

Should add a "restart" option that reads tendencies from disk instead of starting up with Runge-Kutta; can also continue a sequence of snapshot numbers from where it left off.

edoddridge commented 7 years ago

This could be fairly elegantly incorporated by giving an nTimeStep0 option - the timestep number at which the model is intended to restart. We could have some internal code that checks if that number is different from zero, and then it goes looking for the required inputs.