diff --git a/DESCRIPTION b/DESCRIPTION index c681d3e4e12e348464015cd5cdf0e6a83301e1c8..2011cc834308bbd64a8fec04f277d727d53ceb6c 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.4.3.63 -Date: 2020-02-26 +Version: 1.5.0.0 +Date: 2020-02-28 Authors@R: c( 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@inrae.fr"), diff --git a/NEWS.md b/NEWS.md index afd354fe513142628fd307605658ac9a844ed1de..bc09e01ebdfa9928384ffa9f6f07dd5bc106ff5b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,7 +4,11 @@ -### 1.4.3.63 Release Notes (2020-02-26) +### 1.5.0.0 Release Notes (2020-02-28) + +#### Minor user-visible changes + +- Codedaptations to make the package compatible with airGRplus. ____________________________________________________________________________________ diff --git a/R/CreateInputsCrit.R b/R/CreateInputsCrit.R index 4f314eae9f231d01bc4bfc71119740f19fd7e557..9f797d1d3d334a6bdd7e07f746d4f817748453e1 100644 --- a/R/CreateInputsCrit.R +++ b/R/CreateInputsCrit.R @@ -107,7 +107,7 @@ CreateInputsCrit <- function(FUN_CRIT, ## check 'VarObs' + 'RunOptions' - if ("Q" %in% VarObs & !inherits(RunOptions, "GR")) { + if ("Q" %in% VarObs & !inherits(RunOptions, c("GR", "LibMod"))) { stop("'VarObs' cannot contain Q if a GR rainfall-runoff model is not used") } if (any(c("SCA", "SWE") %in% VarObs) & !inherits(RunOptions, "CemaNeige")) {