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
Showing with 3 additions and 4 deletions
+3 -4
...@@ -334,14 +334,13 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, ...@@ -334,14 +334,13 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
if (is.null(Outputs_Cal)) { if (is.null(Outputs_Cal)) {
if ("GR" %in% ObjectClass) { if ("GR" %in% ObjectClass) {
Outputs_Cal <- c("Qsim", "Param") Outputs_Cal <- c("Qsim", "Param")
if ("CemaNeige" %in% ObjectClass) {
Outputs_Cal <- c("PliqAndMelt", Outputs_Cal)
}
} }
if ("CemaNeige" %in% ObjectClass) { if ("CemaNeige" %in% ObjectClass) {
Outputs_Cal <- c("all") Outputs_Cal <- c("all")
} }
if ("GR" %in% ObjectClass &
"CemaNeige" %in% ObjectClass) {
Outputs_Cal <- c("PliqAndMelt", "Qsim")
}
} else { } else {
if (!is.vector(Outputs_Cal)) { if (!is.vector(Outputs_Cal)) {
stop("'Outputs_Cal' must be a vector of characters") stop("'Outputs_Cal' must be a vector of characters")
......
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