Wflow.jl
Wflow.jl copied to clipboard
Write current model state when run fails
Feature type
Adding new functionality
Improvement Description
When a run fails, it now has to be restarted for the full run period. It might be useful to write the current model state as state output given that state.path_output
exists in the config. This will give the option to restart the model with the state of the last timestep
Implementation Description
Would it be possible to 'catch' the error and run a function? Or will an error/exception inevitably mean that no function can be run after the error is catched? Or is this behaviour not supported/desired in Julia
Additional Context
No response