Skip to content

Commit

Permalink
[DEV] Rename getAvailablePower with getCoefficient
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 3, 2023
1 parent ef945a7 commit 3448fad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/load/series.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int DataSeriesLoadSaveToFolder(DataSeriesLoad* s, const AreaName& areaID, const
return 0;
}

double* DataSeriesLoad::getAvailablePower(unsigned int year) const
double* DataSeriesLoad::getCoefficient(unsigned int year) const
{
return timeSeries[getIndex(year)];
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/load/series.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class DataSeriesLoad
*/
void markAsModified() const;

double* getAvailablePower(unsigned int year) const;
double* getCoefficient(unsigned int year) const;
unsigned int getIndex(unsigned int year) const;

public:
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/wind/series.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int DataSeriesWindSaveToFolder(DataSeriesWind* d, const AreaName& areaID, const
return ret;
}

double* DataSeriesWind::getAvailablePower(unsigned int year) const
double* DataSeriesWind::getCoefficient(unsigned int year) const
{
return timeSeries[getIndex(year)];
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/wind/series.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DataSeriesWind

void markAsModified() const;

double* getAvailablePower(unsigned int year) const;
double* getCoefficient(unsigned int year) const;
unsigned int getIndex(unsigned int year) const;

public:
Expand Down
2 changes: 1 addition & 1 deletion src/solver/variable/commons/load.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class TimeSeriesValuesLoad
//
(void)::memcpy(
pValuesForTheCurrentYear[numSpace].hour,
pArea->load.series->getAvailablePower(year),
pArea->load.series->getCoefficient(year),
sizeof(double) * pArea->load.series->timeSeries.height);

// Next variable
Expand Down
2 changes: 1 addition & 1 deletion src/solver/variable/commons/wind.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class TimeSeriesValuesWind
{
// The current wind time-series
(void)::memcpy(pValuesForTheCurrentYear[numSpace].hour,
pArea->wind.series->getAvailablePower(year),
pArea->wind.series->getCoefficient(year),
sizeof(double) * pArea->wind.series->timeSeries.height);
}

Expand Down

0 comments on commit 3448fad

Please sign in to comment.