Skip to content

Commit

Permalink
[skip ci] New hydro remix : tiny correction due to review
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Jan 8, 2025
1 parent 1e51fa2 commit b7107fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/simulation/shave-peaks-by-remix-hydro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ RemixHydroOutput shavePeaksByRemixingHydro(const std::vector<double>& DispatchGe
const std::vector<double>& DTG_MRG)
{
std::vector<double> levels(DispatchGen.size());
if (levels.size())
if (!levels.empty())
{
levels[0] = initial_level + inflows[0] - overflow[0] + pump[0] - HydroGen[0];
for (size_t h = 1; h < levels.size(); ++h)
Expand Down

0 comments on commit b7107fa

Please sign in to comment.