bmi icon indicating copy to clipboard operation
bmi copied to clipboard

Add function to write+read restart file

Open MartineDeVos opened this issue 7 years ago • 2 comments

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.

MartineDeVos avatar Nov 16 '18 13:11 MartineDeVos

Use cases:

  • check pointing
  • iterative solver

hrajagers avatar Nov 16 '18 13:11 hrajagers

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) ..

ipelupessy avatar Nov 20 '18 10:11 ipelupessy