Skip to content

Commit

Permalink
Add reset for levelCost
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Sep 16, 2024
1 parent 53bdf5f commit a67c089
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 @@ -70,6 +70,8 @@ void PartHydro::reset()
powerToLevel = false;
leewayLowerBound = 1.;
leewayUpperBound = 1.;
overflowCost = 0.;
levelCost = 0.;

inflowPattern.reset(1, DAYS_PER_YEAR, true);
inflowPattern.fillColumn(0, 1.0);
Expand All @@ -89,8 +91,6 @@ void PartHydro::reset()
allocation.clear();
// allocation.fromArea(<current area>, 1.); // Area::reset()

overflowCost = 0.;

if (prepro)
{
prepro->reset();
Expand Down

0 comments on commit a67c089

Please sign in to comment.