Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
3676d9cd
Commit
3676d9cd
authored
Jun 22, 2021
by
Dorchies David
Browse files
feat(CreateRunOptions): add IsHyst and IsSD in FeatFUN_MOD item
Refs
#111
parent
419baf7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/CreateRunOptions.R
View file @
3676d9cd
...
@@ -21,6 +21,7 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
...
@@ -21,6 +21,7 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
## check FUN_MOD
## check FUN_MOD
FUN_MOD
<-
match.fun
(
FUN_MOD
)
FUN_MOD
<-
match.fun
(
FUN_MOD
)
FeatFUN_MOD
<-
.GetFeatModel
(
FUN_MOD
=
FUN_MOD
,
DatesR
=
InputsModel
$
DatesR
)
FeatFUN_MOD
<-
.GetFeatModel
(
FUN_MOD
=
FUN_MOD
,
DatesR
=
InputsModel
$
DatesR
)
FeatFUN_MOD
$
IsSD
<-
inherits
(
InputsModel
,
"SD"
)
ObjectClass
<-
FeatFUN_MOD
$
Class
ObjectClass
<-
FeatFUN_MOD
$
Class
TimeStepMean
<-
FeatFUN_MOD
$
TimeStepMean
TimeStepMean
<-
FeatFUN_MOD
$
TimeStepMean
...
@@ -34,6 +35,7 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
...
@@ -34,6 +35,7 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
}
}
if
(
IsHyst
)
{
if
(
IsHyst
)
{
ObjectClass
<-
c
(
ObjectClass
,
"hysteresis"
)
ObjectClass
<-
c
(
ObjectClass
,
"hysteresis"
)
FeatFUN_MOD
$
IsHyst
<-
IsHyst
FeatFUN_MOD
$
NbParam
<-
FeatFUN_MOD
$
NbParam
+
2
FeatFUN_MOD
$
NbParam
<-
FeatFUN_MOD
$
NbParam
+
2
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment