Skip to content

Commit

Permalink
[DEV] remove useless if
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 9, 2023
1 parent 83a04ea commit 1c91c83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/solver/hydro/management/management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,13 @@ void HydroManagement::prepareNetDemand(uint numSpace, uint year)
auto dayYear = calendar_.hours[hour].dayYear;

double netdemand = 0;
auto solarHourValue = (solarSeries) ? solarSeries[hour] : 0;

// Aggregated renewable production: wind & solar
if (parameters_.renewableGeneration.isAggregated())
{
netdemand = + loadSeries[hour]
- windSeries[hour] - scratchpad.miscGenSum[hour]
- solarHourValue - ror[hour]
- solarSeries[hour] - ror[hour]
- ((ModeT != Data::stdmAdequacy) ? scratchpad.mustrunSum[hour]
: scratchpad.originalMustrunSum[hour]);
}
Expand Down

0 comments on commit 1c91c83

Please sign in to comment.