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
1b62dfdd
Commit
1b62dfdd
authored
Oct 23, 2017
by
unknown
Browse files
v1.0.9.52 error message fixed in CreateRunOptions when the length of IniResLevels is checked
parent
e5af398e
Changes
3
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
1b62dfdd
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.9.5
1
Date: 2017-10-
17
Version: 1.0.9.5
2
Date: 2017-10-
23
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl")),
person("Charles", "Perrin", role = c("aut", "ths")),
...
...
NEWS.rmd
View file @
1b62dfdd
...
...
@@ -14,7 +14,7 @@ output:
### 1.0.9.5
1
Release Notes (2017-10-
17
)
### 1.0.9.5
2
Release Notes (2017-10-
23
)
#### New features
...
...
R/CreateRunOptions.R
View file @
1b62dfdd
...
...
@@ -109,12 +109,12 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, IndPeriod_WarmUp = NULL, IndP
identical
(
FUN_MOD
,
RunModel_GR5J
)
|
identical
(
FUN_MOD
,
RunModel_CemaNeigeGR5J
)
|
identical
(
FUN_MOD
,
RunModel_GR2M
))
&
length
(
IniResLevels
)
!=
2
)
{
stop
(
"The length of Ini
State
s must be 2 for the chosen FUN_MOD \n"
)
stop
(
"The length of Ini
ResLevel
s must be 2 for the chosen FUN_MOD \n"
)
return
(
NULL
)
}
if
((
identical
(
FUN_MOD
,
RunModel_GR6J
)
|
identical
(
FUN_MOD
,
RunModel_CemaNeigeGR6J
))
&
length
(
IniResLevels
)
!=
3
)
{
stop
(
"The length of Ini
State
s must be 3 for the chosen FUN_MOD \n"
)
stop
(
"The length of Ini
ResLevel
s must be 3 for the chosen FUN_MOD \n"
)
return
(
NULL
)
}
}
else
if
(
is.null
(
IniStates
))
{
...
...
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