Skip to content

Commit

Permalink
Update management.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir authored Jun 21, 2024
1 parent 2e71488 commit 9aaecac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/hydro/management/management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void HydroManagement::prepareEffectiveDemand(
double effectiveDemand = 0;
// area.hydro.allocation is indexed by area index
area.hydro.allocation.eachNonNull(
[this, &effectiveDemand, &day](unsigned areaIndex, double value)
[this, &effectiveDemand, &day, &hydro_specific_map](unsigned areaIndex, double value)
{
const auto* area = areas_.byIndex[areaIndex];
effectiveDemand += hydro_specific_map[area].daily[day].DLN * value;
Expand Down

0 comments on commit 9aaecac

Please sign in to comment.