Skip to content

Commit

Permalink
Refactor hydro reservoir levels check
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaredstork committed Nov 28, 2024
1 parent d4a660e commit dd72f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/antares/study/parts/hydro/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ bool PartHydro::checkReservoirLevels(const Study& study)
for (unsigned int day = 0; day < DAYS_PER_YEAR; day++)
{
if (!errorLevels
&& (colMin[day] < 0 || colAvg[day] < 0 || colMin[day] > colMax[day]
|| colAvg[day] > 100 || colMax[day] > 100))
&& (0 > colMin[day] || colMin[day] > colAvg[day] || colAvg[day] > colMax[day]
|| colMax[day] > 100))
{
logs.error() << areaName << ": invalid reservoir level value";
errorLevels = true;
Expand Down

0 comments on commit dd72f6f

Please sign in to comment.