Commit 65f08701 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.3.2.25 BUG: RunModel_CemaNeige now returns a ts of precipitation with an...

v1.3.2.25 BUG: RunModel_CemaNeige now returns a ts of precipitation with an exact length  when IndPeriod_WarmUp = 0L (no warm-up) in CreateRunOptions #5622
Showing with 10 additions and 4 deletions
+10 -4
Package: airGR Package: airGR
Type: Package Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.3.2.24 Version: 1.3.2.25
Date: 2019-06-21 Date: 2019-09-04
Authors@R: c( Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@irstea.fr"), person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@irstea.fr"),
......
...@@ -14,7 +14,13 @@ output: ...@@ -14,7 +14,13 @@ output:
### 1.3.2.24 Release Notes (2019-06-21) ### 1.3.2.25 Release Notes (2019-06-21)
#### Bug fixes
- Fixed bug in <code>RunModel_CemaNeige()</code>. The function now runs correctly when <code>IndPeriod_WarmUp = 0L</code> in <code>CreateRunOptions()</code> value without <code>"CumFreq"</code> in order to completely disable the warm-up period (e.g. to perform a forecast form a given initial state).
____________________________________________________________________________________ ____________________________________________________________________________________
......
...@@ -40,7 +40,7 @@ RunModel_CemaNeige <- function(InputsModel, RunOptions, Param) { ...@@ -40,7 +40,7 @@ RunModel_CemaNeige <- function(InputsModel, RunOptions, Param) {
} }
## Input_data_preparation ## Input_data_preparation
if (identical(RunOptions$IndPeriod_WarmUp, 0)) { if (identical(RunOptions$IndPeriod_WarmUp, as.integer(0))) {
RunOptions$IndPeriod_WarmUp <- NULL RunOptions$IndPeriod_WarmUp <- NULL
} }
IndPeriod1 <- c(RunOptions$IndPeriod_WarmUp, RunOptions$IndPeriod_Run) IndPeriod1 <- c(RunOptions$IndPeriod_WarmUp, RunOptions$IndPeriod_Run)
......
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