Commit 5a7cbe6c authored by Dorchies David's avatar Dorchies David
Browse files

fix: crash of regularisation with cemaneige

- fix missing "Param" in Outputs_Cal

Refs #111
parent 42b57b23
Pipeline #26017 passed with stages
in 38 minutes and 17 seconds
......@@ -334,14 +334,13 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
if (is.null(Outputs_Cal)) {
if ("GR" %in% ObjectClass) {
Outputs_Cal <- c("Qsim", "Param")
if ("CemaNeige" %in% ObjectClass) {
Outputs_Cal <- c("PliqAndMelt", Outputs_Cal)
}
}
if ("CemaNeige" %in% ObjectClass) {
Outputs_Cal <- c("all")
}
if ("GR" %in% ObjectClass &
"CemaNeige" %in% ObjectClass) {
Outputs_Cal <- c("PliqAndMelt", "Qsim")
}
} else {
if (!is.vector(Outputs_Cal)) {
stop("'Outputs_Cal' must be a vector of characters")
......
Markdown is supported
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