csdms / bmi

The Basic Model Interface is a standardized set of functions allowing coupling of models to models and models to data
https://bmi.csdms.io
MIT License
49 stars 17 forks source link

Add function to write+read restart file #12

Open MartineDeVos opened 6 years ago

MartineDeVos commented 6 years ago

eWatercycleII: add a function that writes a restart file at the current model time, and read the file to actually do the restart. Starting from a restart should still be handled to feed the appropriate configuration file to the initializer function.

hrajagers commented 6 years ago

Use cases:

ipelupessy commented 6 years ago

The alternative to this is being able to restart using the bmi getters and setters (which offers more flexibility). The rationale of seperate function for writing and reading the state is that its quite hard in practice to achieve complete coverage for the BMI getters and setters (and its difficult to achieve bitwise consistent restarts this way) ..