diff --git a/src/solver/hydro/management/management.cpp b/src/solver/hydro/management/management.cpp index 0892266d57..9afb8e7bab 100644 --- a/src/solver/hydro/management/management.cpp +++ b/src/solver/hydro/management/management.cpp @@ -396,7 +396,7 @@ void HydroManagement::prepareNetDemand(uint numSpace, uint year) // Aggregated renewable production: wind & solar if (parameters_.renewableGeneration.isAggregated()) { - netdemand = +scratchpad.ts.load[area.wind.series->getIndex(year)][hour] + netdemand = +scratchpad.ts.load[area.load.series->getIndex(year)][hour] - scratchpad.ts.wind[area.wind.series->getIndex(year)][hour] - scratchpad.miscGenSum[hour] - scratchpad.ts.solar[ptchro.Solar][hour] - ror[hour] - ((ModeT != Data::stdmAdequacy) ? scratchpad.mustrunSum[hour] @@ -406,7 +406,7 @@ void HydroManagement::prepareNetDemand(uint numSpace, uint year) // Renewable clusters, if enabled else if (parameters_.renewableGeneration.isClusters()) { - netdemand = scratchpad.ts.load[area.wind.series->getIndex(year)][hour] + netdemand = scratchpad.ts.load[area.load.series->getIndex(year)][hour] - scratchpad.miscGenSum[hour] - ror[hour] - ((ModeT != Data::stdmAdequacy) ? scratchpad.mustrunSum[hour] : scratchpad.originalMustrunSum[hour]);