Skip to content

Commit

Permalink
fix - only check active years
Browse files Browse the repository at this point in the history
  • Loading branch information
Milos-RTEi committed Sep 8, 2023
1 parent e191e5a commit d38d482
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d38d482

Please sign in to comment.