Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix to state file i/o problems and refactoring of initialization #464
Fix to state file i/o problems and refactoring of initialization into separate functions for generating a default state and for handling derived state variables. Most of these functions are shared across drivers.
Quick summary of the changes:
read_soilparam(classic) or vic_init(image/cesm):
Note: I've tested that both classic and image drivers now successfully save state at the appointed time, and either read the specified state file or start from a default state as requested.
Note: results are a little different between the new classic and 4.2. Not hugely, but still, not the same. Hopefully this can be investigated further in restart tests.