• Fix: bug where deficit of last time step was uninitialised (zero).

Internal

  • Refactored internal code for faster code execution (C++ instead of R).
  • Reworked and simplified cwd:
    • argument thresh_terminate removed (i.e. threshold-based event re-setting)
    • argumed do_surplus added
  • Clarified error message when partial year is run. simulate_snow() requires at least 365 days (due to snowpack spinup), but allows for partial last year.
  • Initial version