You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v525 - state variable overriding, divert_fract [BENCHMARKED]
Support for state variable overriding
-new members _nStateVarOverrides/_pStateVarOverrides (Model.h/cpp)
-new routine CModel::ApplyStateOverrides() (Model.cpp)
-new struct sv_over (Model.h)
-new options item sv_override_endtime (RavenInclude.h; ParseInput.cpp)
-new commands :StateOverrideEndTime & :OverrideState (ParseInput.cpp;ParseTimeSeriesFile.cpp)
-adjust model initialization (ModelInitialize.cpp)
-incorporate in main loop (RavenMain.cpp; Raven_BMI.cpp)
divert_fract as subbasin property (SubBasin.cpp/.h)
bug fix
- correct handling of temperature perturbations in AdjustDailyHRUForcings() (HydroUnits.cpp)
/// \brief Data abstraction for water surface model
53
62
/// \details Stores and organizes HRUs and basins, provides access to all
@@ -79,6 +88,9 @@ class CModel: public CModelABC
79
88
sv_type *_aStateVarType; ///< type of state variable in unit i [size:_nStateVars]
80
89
int *_aStateVarLayer; ///< index of state variable for multilayer variables (e.g., SOIL); [size:_nStateVars] value=DOESNT_EXIST(-1) for unique variables (e.g. SURFACE_WATER)
81
90
int _aStateVarIndices[MAX_STATE_VAR_TYPES][MAX_SV_LAYERS]; ///< lookup table for state variable indices; the index of SOIL[1] in a state_var[] array may be returned by aStateVarIndices[(int)(SOIL)][1]
91
+
92
+
sv_over **_pStateVarOverrides; ///< array of pointers to state variable override time series
93
+
int _nStateVarOverrides; ///< number of state variable overrides
82
94
83
95
int _nSoilVars; ///< number of soil layer storage units
84
96
@@ -460,11 +472,12 @@ class CModel: public CModelABC
0 commit comments