FormingWorlds / PROTEUS

Coupled atmosphere-interior framework to simulate the temporal evolution of rocky planets.
https://fwl-proteus.readthedocs.io
Apache License 2.0
11 stars 1 forks source link

Resume simulation #112

Closed nichollsh closed 1 month ago

nichollsh commented 1 month ago

With these changes, PROTEUS is able to resume a simulation from a previous state. This is done by passing the command line flag --resume. This will load the previous variables and continue from the last saved point in the output folder, using the configuration file provided by --cfg.

This also results in fewer dictionary passes to functions (e.g. time_dict stays within the main loop) which should help to modularise things.

I have tested this under several conditions, and it seems to work well. The implementation is not very complex, thankfully. I hope that this will also make implementing some tests easier. Closes #90.

Other changes: