From 7a57e27c3ce3945b592e08a2e7e497190c5f1e78 Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Tue, 3 May 2022 17:28:22 +0200
Subject: [PATCH] include threshold in definition of exceedance event

---
 include/evalhyd/utils.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/evalhyd/utils.hpp b/include/evalhyd/utils.hpp
index 016e986..ff4bcd2 100644
--- a/include/evalhyd/utils.hpp
+++ b/include/evalhyd/utils.hpp
@@ -40,7 +40,7 @@ namespace evalhyd
             );
 
             // return a boolean-like array
-            return q2 > thr;
+            return q2 >= thr;
         }
 
         /// Determine whether flows are strictly lower than given threshold(s)
@@ -72,7 +72,7 @@ namespace evalhyd
             );
 
             // return a boolean-like array
-            return q2 < thr;
+            return q2 <= thr;
         }
     }
 }
-- 
GitLab