Skip to content

Commit

Permalink
Level - Capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Feb 21, 2025
1 parent c41320e commit 9382c3b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class ReservoirLevel: public Variable::IVariable<ReservoirLevel<NextT>, NextT, V
void initializeFromArea(Data::Study* study, Data::Area* area)
{
// Next
pReservoirLevel = area->hydro.reservoirLevel;
pReservoirCapacity = area->hydro.reservoirCapacity;
NextType::initializeFromArea(study, area);
}

Expand Down Expand Up @@ -231,7 +231,7 @@ class ReservoirLevel: public Variable::IVariable<ReservoirLevel<NextT>, NextT, V
pValuesForTheCurrentYear[numSpace].hour[state.hourInTheYear] = state.hourlyResults
->niveauxHoraires
[state.hourInTheWeek]
* pReservoirLevel / 100.;
* pReservoirCapacity / 100.;

// Next variable
NextType::hourForEachArea(state, numSpace);
Expand Down Expand Up @@ -266,7 +266,7 @@ class ReservoirLevel: public Variable::IVariable<ReservoirLevel<NextT>, NextT, V
//! Intermediate values for each year
typename VCardType::IntermediateValuesType pValuesForTheCurrentYear;
unsigned int pNbYearsParallel;
double pReservoirLevel;
double pReservoirCapacity;

}; // class HydroLevel

Expand Down

0 comments on commit 9382c3b

Please sign in to comment.