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
0d6d8bb3
Commit
0d6d8bb3
authored
Jan 12, 2021
by
Delaigue Olivier
Browse files
v1.6.9.19 refactor(GR2M): rename Exch outputs into AExch in the GR2M model
Refs
#87
,
f0309255
parent
f0309255
Pipeline
#19112
passed with stages
in 35 minutes and 32 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
0d6d8bb3
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.6.9.1
8
Version: 1.6.9.1
9
Date: 2021-01-12
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
...
...
NEWS.md
View file @
0d6d8bb3
...
...
@@ -2,7 +2,7 @@
### 1.6.9.1
8
Release Notes (2021-01-12)
### 1.6.9.1
9
Release Notes (2021-01-12)
#### New features
...
...
R/Utils.R
View file @
0d6d8bb3
...
...
@@ -32,7 +32,8 @@
outGR
<-
c
(
"PotEvap"
,
"Precip"
,
"Prod"
,
"Pn"
,
"Ps"
,
"AE"
,
"Perc"
,
"PR"
,
"Rout"
,
"Exch"
,
"Rout"
,
"AExch"
,
"Qsim"
)
}
else
if
(
GR
==
"GR5H"
)
{
outGR
<-
c
(
"PotEvap"
,
"Precip"
,
"Interc"
,
"Prod"
,
"Pn"
,
"Ps"
,
...
...
src/frun_GR2M.f90
View file @
0d6d8bb3
...
...
@@ -14,12 +14,12 @@
! Last modified: 16/04/2020
!------------------------------------------------------------------------------
! REFERENCES
! Mouelhi S. (2003). Vers une chaîne cohérente de modèles pluie-débit
! conceptuels globaux aux pas de temps pluriannuel, annuel, mensuel et
! Mouelhi S. (2003). Vers une chaîne cohérente de modèles pluie-débit
! conceptuels globaux aux pas de temps pluriannuel, annuel, mensuel et
! journalier. PhD thesis (in French), ENGREF, Cemagref Antony, France.
!
! Mouelhi, S., C. Michel, C. Perrin and V. Andréassian (2006). Stepwise
! development of a two-parameter monthly water balance model. Journal of
! Mouelhi, S., C. Michel, C. Perrin and V. Andréassian (2006). Stepwise
! development of a two-parameter monthly water balance model. Journal of
! Hydrology, 318(1-4), 200-214. doi:10.1016/j.jhydrol.2005.06.014.
!------------------------------------------------------------------------------
! Quick description of public procedures:
...
...
@@ -31,7 +31,7 @@
SUBROUTINE
frun_gr2m
(
LInputs
,
InputsPrecip
,
InputsPE
,
NParam
,
Param
,
&
NStates
,
StateStart
,
NOutputs
,
IndOutputs
,
&
Outputs
,
StateEnd
)
! Subroutine that initializes GR2M, get its parameters, performs the call
! Subroutine that initializes GR2M, get its parameters, performs the call
! to the MOD_GR2M subroutine at each time step, and stores the final states
! Inputs
! LInputs ! Integer, length of input and output series
...
...
@@ -43,7 +43,7 @@
! StateStart ! Vector of real, state variables used when the model run starts (store levels [mm])
! NOutputs ! Integer, number of output series
! IndOutputs ! Vector of integer, indices of output series
! Outputs
! Outputs
! Outputs ! Vector of real, output series
! StateEnd ! Vector of real, state variables at the end of the model run (store levels [mm])
...
...
@@ -64,7 +64,7 @@
! out
doubleprecision
,
dimension
(
NStates
),
intent
(
out
)
::
StateEnd
doubleprecision
,
dimension
(
LInputs
,
NOutputs
),
intent
(
out
)
::
Outputs
!! locals
integer
::
I
,
K
integer
,
parameter
::
NMISC
=
30
...
...
@@ -145,7 +145,7 @@
!! locals
integer
,
parameter
::
NParam
=
2
,
NMISC
=
30
doubleprecision
::
WS
,
S1
,
S2
doubleprecision
::
P1
,
P2
,
P3
,
R1
,
R2
,
AE
,
EXCH
,
PS
doubleprecision
::
P1
,
P2
,
P3
,
R1
,
R2
,
AE
,
A
EXCH
,
PS
doubleprecision
::
expWS
,
TWS
,
Sr
! speed-up
!! dummies
...
...
@@ -157,40 +157,40 @@
! out
doubleprecision
,
intent
(
out
)
::
Q
doubleprecision
,
dimension
(
NMISC
),
intent
(
out
)
::
MISC
! Production store
WS
=
P
/
Param
(
1
)
WS
=
P
/
Param
(
1
)
IF
(
WS
.GT.
13.
)
WS
=
13.
! speed-up
expWS
=
exp
(
2.
*
WS
)
TWS
=
(
expWS
-
1.
)/(
expWS
+
1.
)
S1
=
(
St
(
1
)
+
Param
(
1
)
*
TWS
)/(
1.
+
St
(
1
)/
Param
(
1
)
*
TWS
)
! S1=(X(1)+Param(1)*tanHyp(WS))/(1.+X(1)/Param(1)*tanHyp(WS))
S1
=
(
St
(
1
)
+
Param
(
1
)
*
TWS
)/(
1.
+
St
(
1
)/
Param
(
1
)
*
TWS
)
! S1=(X(1)+Param(1)*tanHyp(WS))/(1.+X(1)/Param(1)*tanHyp(WS))
! end speed-up
P1
=
P
+
St
(
1
)
-
S1
PS
=
P
-
P1
WS
=
E
/
Param
(
1
)
PS
=
P
-
P1
WS
=
E
/
Param
(
1
)
IF
(
WS
.GT.
13.
)
WS
=
13.
! speed-up
expWS
=
exp
(
2.
*
WS
)
TWS
=
(
expWS
-
1.
)/(
expWS
+
1.
)
S2
=
S1
*
(
1.
-
TWS
)/(
1.
+
(
1.
-
S1
/
Param
(
1
))
*
TWS
)
! S2=S1*(1.-tanHyp(WS))/(1.+(1.-S1/Param(1))*tanHyp(WS))
S2
=
S1
*
(
1.
-
TWS
)/(
1.
+
(
1.
-
S1
/
Param
(
1
))
*
TWS
)
! S2=S1*(1.-tanHyp(WS))/(1.+(1.-S1/Param(1))*tanHyp(WS))
! end speed-up
AE
=
S1
-
S2
! Percolation
! speed-up
Sr
=
S2
/
Param
(
1
)
Sr
=
Sr
*
Sr
*
Sr
+
1.
St
(
1
)
=
S2
/
Sr
**
(
1.
/
3.
)
! X(1)=S2/(1+(S2/Param(1))**3.)**(1./3.)
! X(1)=S2/(1+(S2/Param(1))**3.)**(1./3.)
! end speed-up
P2
=
S2
-
St
(
1
)
P2
=
S2
-
St
(
1
)
P3
=
P1
+
P2
! QR calculation (routing store)
...
...
@@ -198,7 +198,7 @@
! Water exchange
R2
=
Param
(
2
)
*
R1
EXCH
=
R2
-
R1
A
EXCH
=
R2
-
R1
! Total runoff
Q
=
R2
*
R2
/(
R2
+60.
)
...
...
@@ -217,7 +217,7 @@
MISC
(
7
)
=
P2
! Perc ! [numeric] percolation (P2) [mm/month]
MISC
(
8
)
=
P3
! PR ! [numeric] P3=P1+P2 [mm/month]
MISC
(
9
)
=
St
(
2
)
! Rout ! [numeric] routing store level (St(2)) [mm]
MISC
(
10
)
=
EXCH
! EXCH
! [numeric] groundwater exchange (EXCH) [mm/month]
MISC
(
10
)
=
A
EXCH
!
A
EXCH ! [numeric]
actual
groundwater exchange (
A
EXCH) [mm/month]
MISC
(
11
)
=
Q
! Qsim ! [numeric] simulated outflow at catchment outlet [mm/month]
...
...
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