Commit de9d5118 authored by David's avatar David
Browse files

fix(RunModel_Lag): missing DatesR in OutputsModel

Refs #144
2 merge requests!93Draft: Version 0.7.0,!74Resolve "Highlight the water deficit at a node due to too much withdrawals"
Pipeline #54627 passed with stage
in 7 minutes and 21 seconds
Showing with 3 additions and 0 deletions
+3 -0
......@@ -23,6 +23,9 @@ RunModel.SD <- function(x, RunOptions, Param, QcontribDown = NULL, ...) {
RunOptions = RunOptions,
Param = Param[1],
QcontribDown = QcontribDown)
if (is.null(OutputsModel$DatesR)) {
OutputsModel$DatesR <- x$DatesR[RunOptions$IndPeriod_Run]
}
if ("WarmUpQsim" %in% RunOptions$Outputs_Sim) {
OutputsModel$RunOptions$WarmUpQsim_m3 <-
OutputsModel$RunOptions$WarmUpQsim * sum(x$BasinAreas, na.rm = TRUE) * 1e3
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment