Skip to content

Commit

Permalink
Avoid unnecessary copy in profitByPlant.h (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Nov 8, 2023
1 parent 1cf1b86 commit 10278e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/variable/economy/profitByPlant.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class ProfitByPlant : public Variable::IVariable<ProfitByPlant<NextT>, NextT, VC
// Useful local variables
auto area = state.area;
auto& thermal = state.thermal;
std::vector<double> areaMarginalCosts = state.hourlyResults->CoutsMarginauxHoraires;
const std::vector<double>& areaMarginalCosts = state.hourlyResults->CoutsMarginauxHoraires;
uint hourInTheWeek = state.hourInTheWeek;
uint hourInTheYear = state.hourInTheYear;

Expand Down

0 comments on commit 10278e9

Please sign in to comment.