From 1b62dfdd37a6e394a09df1387f93dafa1983ad0c Mon Sep 17 00:00:00 2001 From: unknown <olivier.delaigue@ANPI1430.antony.irstea.priv> Date: Mon, 23 Oct 2017 16:31:05 +0200 Subject: [PATCH] v1.0.9.52 error message fixed in CreateRunOptions when the length of IniResLevels is checked --- DESCRIPTION | 4 ++-- NEWS.rmd | 2 +- R/CreateRunOptions.R | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 9a98b9f3..45fdd768 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: airGR Type: Package Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling -Version: 1.0.9.51 -Date: 2017-10-17 +Version: 1.0.9.52 +Date: 2017-10-23 Authors@R: c( person("Laurent", "Coron", role = c("aut", "trl")), person("Charles", "Perrin", role = c("aut", "ths")), diff --git a/NEWS.rmd b/NEWS.rmd index e5b0b4b2..f06bc248 100644 --- a/NEWS.rmd +++ b/NEWS.rmd @@ -14,7 +14,7 @@ output: -### 1.0.9.51 Release Notes (2017-10-17) +### 1.0.9.52 Release Notes (2017-10-23) #### New features diff --git a/R/CreateRunOptions.R b/R/CreateRunOptions.R index ace69b1c..caae17a1 100644 --- a/R/CreateRunOptions.R +++ b/R/CreateRunOptions.R @@ -109,12 +109,12 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, IndPeriod_WarmUp = NULL, IndP identical(FUN_MOD, RunModel_GR5J) | identical(FUN_MOD, RunModel_CemaNeigeGR5J) | identical(FUN_MOD, RunModel_GR2M)) & length(IniResLevels) != 2) { - stop("The length of IniStates must be 2 for the chosen FUN_MOD \n") + stop("The length of IniResLevels must be 2 for the chosen FUN_MOD \n") return(NULL) } if ((identical(FUN_MOD,RunModel_GR6J) | identical(FUN_MOD,RunModel_CemaNeigeGR6J)) & length(IniResLevels) != 3) { - stop("The length of IniStates must be 3 for the chosen FUN_MOD \n") + stop("The length of IniResLevels must be 3 for the chosen FUN_MOD \n") return(NULL) } } else if (is.null(IniStates)) { -- GitLab