From df1cdf28d60017cffb1ba22ff72ca5428e7fe6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Omn=C3=A8s?= Date: Tue, 21 Dec 2021 17:58:35 +0100 Subject: [PATCH] Fix hydro level discontinuities (#491) * Fix hydro level discontinuities Level is between 0 and capacity, not 0 and 1. * Small fix based on discussions --- src/solver/simulation/sim_structure_probleme_economique.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/solver/simulation/sim_structure_probleme_economique.h b/src/solver/simulation/sim_structure_probleme_economique.h index 405634d245..ec382edbd6 100644 --- a/src/solver/simulation/sim_structure_probleme_economique.h +++ b/src/solver/simulation/sim_structure_probleme_economique.h @@ -366,12 +366,6 @@ class computeTimeStepLevel level = level + inflows[step] - turb[step] + pumpRatio * pump[step]; - if (Yuni::Math::Zero(level)) - level = 0.; - - if (Yuni::Math::Zero(1. - level)) - level = capacity; - if (level > capacity) { ovf[step] = level - capacity;