+ 13
− 0
@@ -5,6 +5,7 @@ CreateInputsModel <- function(FUN_MOD,
@@ -215,6 +216,8 @@ CreateInputsModel <- function(FUN_MOD,
@@ -330,6 +333,16 @@ CreateInputsModel <- function(FUN_MOD,
+ 6
− 9
@@ -48,7 +48,7 @@ RunModel_Lag <- function(InputsModel, RunOptions, Param, QcontribDown) {
@@ -78,15 +78,15 @@ RunModel_Lag <- function(InputsModel, RunOptions, Param, QcontribDown) {
@@ -98,9 +98,6 @@ RunModel_Lag <- function(InputsModel, RunOptions, Param, QcontribDown) {
+ 1
− 1
@@ -40,7 +40,7 @@ Calibration_Michel(InputsModel, RunOptions, InputsCrit, CalibOptions,
+ 9
− 5
@@ -19,7 +19,7 @@ CreateInputsModel(FUN_MOD, DatesR, Precip, PrecipScale = TRUE, PotEvap = NULL,
@@ -50,12 +50,14 @@ CreateInputsModel(FUN_MOD, DatesR, Precip, PrecipScale = TRUE, PotEvap = NULL,
@@ -80,9 +82,11 @@ Users wanting to use \code{FUN_MOD} functions that are not included in
Users wanting to use a semi-distributed (SD) lag model should provide valid \code{Qupstream}, \code{LengthHydro}, and \code{BasinAreas} parameters. Each upstream sub-catchment is described by an upstream flow time series (one column in \code{Qupstream} matrix), a distance between the downstream outlet and the upstream inlet (one item in \code{LengthHydro}) and an area (one item in \code{BasinAreas}).
Users wanting to use a semi-distributed (SD) model should provide valid \code{Qupstream}, \code{LengthHydro}, and \code{BasinAreas} arguments. Each upstream sub-catchment is described by an upstream flow time series (one column in \code{Qupstream} matrix), a distance between the downstream outlet and the upstream inlet (one item in \code{LengthHydro}) and an area (one item in \code{BasinAreas}).
+ 2
− 8
@@ -3,7 +3,6 @@
@@ -16,8 +15,6 @@ Function which performs a single model run with the provided function over the s
@@ -29,11 +26,8 @@ RunModel(InputsModel, RunOptions, Param, FUN_MOD, ...)
+ 92
− 12
@@ -39,6 +39,22 @@ RunOptions <- suppressWarnings(CreateRunOptions(FUN_MOD = RunModel_GR4J,
@@ -125,8 +141,15 @@ test_that("'Qupstream' contain NA values", {
@@ -135,8 +158,15 @@ test_that("Upstream basin with nil area should return same Qdown as GR4J alone",
@@ -146,22 +176,72 @@ test_that("Downstream basin with nil area and nul upstream length should return
@@ -218,7 +298,7 @@ test_that("1 no area input with lag of 1 time step delay out gives an output del
+ 23
− 48
@@ -37,28 +19,20 @@ default:
@@ -90,15 +64,6 @@ check_as_cran_patched:
@@ -117,29 +82,39 @@ check_as_cran_devel: