Commit 738a102c authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

fix: add missing the management lines of the class removed by mistake in CreateRunOptions

Showing with 8 additions and 0 deletions
+8 -0
...@@ -24,6 +24,14 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, ...@@ -24,6 +24,14 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
ObjectClass <- FeatFUN_MOD$Class ObjectClass <- FeatFUN_MOD$Class
TimeStepMean <- FeatFUN_MOD$TimeStepMean TimeStepMean <- FeatFUN_MOD$TimeStepMean
## manage class
if (IsIntStore) {
ObjectClass <- c(ObjectClass, "interception")
}
if (IsHyst) {
ObjectClass <- c(ObjectClass, "hysteresis")
}
if (!"CemaNeige" %in% ObjectClass & "hysteresis" %in% ObjectClass) { if (!"CemaNeige" %in% ObjectClass & "hysteresis" %in% ObjectClass) {
stop("'IsHyst' cannot be TRUE for the chosen 'FUN_MOD'") stop("'IsHyst' cannot be TRUE for the chosen 'FUN_MOD'")
} }
......
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