Wflow.jl icon indicating copy to clipboard operation
Wflow.jl copied to clipboard

Write current model state when run fails

Open shartgring opened this issue 4 months ago • 1 comments

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

shartgring avatar Oct 14 '24 08:10 shartgring