Skip to content

Commit

Permalink
try few changes
Browse files Browse the repository at this point in the history
payetvin committed Jan 16, 2025
1 parent b2e5f3d commit ae05b69
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -18,8 +18,7 @@
** You should have received a copy of the Mozilla Public Licence 2.0
** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
*/
#ifndef __SOLVER_VARIABLE_ECONOMY_DispatchableGeneration_H__
#define __SOLVER_VARIABLE_ECONOMY_DispatchableGeneration_H__
#pragma once

#include "antares/solver/variable/variable.h"

@@ -147,6 +146,10 @@ class DispatchableGeneration

~DispatchableGeneration()
{
for (unsigned int numSpace = 0; numSpace < pNbYearsParallel; numSpace++)
{
delete[] pValuesForTheCurrentYear[numSpace];
}
delete[] pValuesForTheCurrentYear;
}

@@ -223,7 +226,8 @@ class DispatchableGeneration
{
for (unsigned int column = 0; column < nbColumns_; column++)
{
pValuesForTheCurrentYear[numSpace][column].computeAveragesForCurrentYearFromHourlyResults();
pValuesForTheCurrentYear[numSpace][column]
.computeAveragesForCurrentYearFromHourlyResults();
}

// Next variable
@@ -345,5 +349,3 @@ class DispatchableGeneration
}; // class DispatchableGeneration

} // namespace Antares::Solver::Variable::Economy

#endif // __SOLVER_VARIABLE_ECONOMY_DispatchableGeneration_H__

0 comments on commit ae05b69

Please sign in to comment.