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
6e8d6c9f
Commit
6e8d6c9f
authored
Mar 15, 2017
by
unknown
Browse files
v1.0.5.26 warning message in RunModel_*() fixed when X1 and X3 < 1e-2
parent
02b94b6c
Changes
8
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
6e8d6c9f
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.5.2
5
Version: 1.0.5.2
6
Date: 2017-03-15
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl")),
...
...
R/RunModel_CemaNeigeGR4J.R
View file @
6e8d6c9f
...
...
@@ -22,7 +22,7 @@ RunModel_CemaNeigeGR4J <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
3
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
R/RunModel_CemaNeigeGR5J.R
View file @
6e8d6c9f
...
...
@@ -22,7 +22,7 @@ RunModel_CemaNeigeGR5J <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
3
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
R/RunModel_CemaNeigeGR6J.R
View file @
6e8d6c9f
...
...
@@ -22,7 +22,7 @@ RunModel_CemaNeigeGR6J <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
3
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
R/RunModel_GR4H.R
View file @
6e8d6c9f
...
...
@@ -19,7 +19,7 @@ RunModel_GR4H <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
3
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
R/RunModel_GR4J.R
View file @
6e8d6c9f
...
...
@@ -19,7 +19,7 @@ RunModel_GR4J <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
3
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
@@ -54,7 +54,7 @@ RunModel_GR4J <- function(InputsModel,RunOptions,Param){
)
RESULTS
$
Outputs
[
round
(
RESULTS
$
Outputs
,
3
)
==
(
-999.999
)]
<-
NA
;
RESULTS
$
StateEnd
[
round
(
RESULTS
$
StateEnd
,
3
)
==
(
-999.999
)]
<-
NA
;
print
(
head
(
RESULTS
$
Outputs
[,
c
(
3
,
9
)]))
##Output_data_preparation
IndPeriod2
<-
(
length
(
RunOptions
$
IndPeriod_WarmUp
)
+1
)
:
LInputSeries
;
ExportDatesR
<-
"DatesR"
%in%
RunOptions
$
Outputs_Sim
;
...
...
R/RunModel_GR5J.R
View file @
6e8d6c9f
...
...
@@ -19,7 +19,7 @@ RunModel_GR5J <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
3
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
R/RunModel_GR6J.R
View file @
6e8d6c9f
...
...
@@ -19,7 +19,7 @@ RunModel_GR6J <- function(InputsModel,RunOptions,Param){
Param
[
1L
]
<-
Param_X1X3_threshold
}
if
(
Param
[
3L
]
<
Param_X1X3_threshold
)
{
warning
(
sprintf
(
"Param[
1
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
warning
(
sprintf
(
"Param[
6
] (X3: routing store capacity [mm]) < %.2f\n New X3 value: %.2f"
,
Param_X1X3_threshold
,
Param_X1X3_threshold
))
Param
[
3L
]
<-
Param_X1X3_threshold
}
...
...
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