Commit c166e53b authored by Hban Mesure's avatar Hban Mesure
Browse files

v1.4.1.20 NEW: add a condition to check if Imax < 0 in CreaRunOptions #13

Showing with 6 additions and 3 deletions
+6 -3
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.4.1.19
Version: 1.4.1.20
Date: 2019-12-06
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -2,7 +2,7 @@
### 1.4.1.19 Release Notes (2019-12-06)
### 1.4.1.20 Release Notes (2019-12-06)
#### New features
......
......@@ -10,8 +10,11 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, IndPeriod_WarmUp = NULL, IndP
}
if (!is.null(Imax)) {
if (!is.numeric(Imax) | length(Imax) != 1L) {
stop("'Imax' must be a 'numeric' of length 1")
if (Imax < 0) {
stop("'Imax' must be a non negative 'numeric' value of length 1")
}
}
}
IsIntStore <- TRUE
} else {
IsIntStore <- FALSE
......
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