From d38d482de0c9594d3e5c26c533c15e162eb18de0 Mon Sep 17 00:00:00 2001 From: Milos-RTEi Date: Fri, 8 Sep 2023 12:57:33 +0200 Subject: [PATCH] fix - only check active years --- .../simulation/hydro-final-reservoir-level-functions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/solver/simulation/hydro-final-reservoir-level-functions.cpp b/src/solver/simulation/hydro-final-reservoir-level-functions.cpp index 09735e0990..8fada405e0 100644 --- a/src/solver/simulation/hydro-final-reservoir-level-functions.cpp +++ b/src/solver/simulation/hydro-final-reservoir-level-functions.cpp @@ -56,12 +56,13 @@ void CheckFinalReservoirLevelsForYear(const Data::Study& study, uint year) void CheckFinalReservoirLevelsConfiguration(const Data::Study& study) { initializeFinalLevelData(study); - + uint nbYears = study.parameters.nbYears; for (uint year = 0; year != nbYears; ++year) { - CheckFinalReservoirLevelsForYear(study, year); + if (study.parameters.yearsFilter.at(year)) + CheckFinalReservoirLevelsForYear(study, year); } }