From c4169c2ae12a0a3935c73ab00145a07d0ca5b5de Mon Sep 17 00:00:00 2001
From: Delaigue Olivier <olivier.delaigue@irstea.priv>
Date: Fri, 6 Sep 2019 09:41:59 +0200
Subject: [PATCH] v1.3.2.29 CLEAN: lines moved to initialize Gthreshold and
 Glocalmax only when IsHyst in frun_CEMANEIGE.f

---
 DESCRIPTION          | 4 ++--
 NEWS.rmd             | 2 +-
 src/frun_CEMANEIGE.f | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index e86bef85..2bfa34f4 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,8 +1,8 @@
 Package: airGR
 Type: Package
 Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
-Version: 1.3.2.28
-Date: 2019-09-04
+Version: 1.3.2.29
+Date: 2019-09-06
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
   person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@irstea.fr"),
diff --git a/NEWS.rmd b/NEWS.rmd
index c6b9b6b3..8155b6b0 100644
--- a/NEWS.rmd
+++ b/NEWS.rmd
@@ -14,7 +14,7 @@ output:
 
 
 
-### 1.3.2.28 Release Notes (2019-09-04)
+### 1.3.2.29 Release Notes (2019-09-06)
 
 
 
diff --git a/src/frun_CEMANEIGE.f b/src/frun_CEMANEIGE.f
index e778f37f..7a1bee22 100644
--- a/src/frun_CEMANEIGE.f
+++ b/src/frun_CEMANEIGE.f
@@ -58,8 +58,6 @@
       !initialisation of model states using StateStart
       G=StateStart(1)
       eTG=StateStart(2)
-      Gthreshold=StateStart(3)
-      Glocalmax=StateStart(4)
       Gratio=0.
       PliqAndMelt=0.
 
@@ -67,6 +65,8 @@
       CTG=Param(1)
       Kf=Param(2)
       IF (IsHyst) THEN
+        Gthreshold=StateStart(3)
+        Glocalmax=StateStart(4)
         Gacc=Param(3)
         prct=Param(4)
 
-- 
GitLab