Skip to content

Commit

Permalink
End-to-end BC tests : ensure retrieving correctly cluster production …
Browse files Browse the repository at this point in the history
…results
  • Loading branch information
guilpier-code committed Jul 21, 2023
1 parent 2c207e9 commit aba7fab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ std::shared_ptr<ThermalCluster> addClusterToArea(Area* area, const std::string&
BOOST_CHECK(added != nullptr);

area->thermal.list.mapping[cluster->id()] = added;
area->thermal.prepareAreaWideIndexes();

return cluster;
}
Expand Down Expand Up @@ -146,7 +147,7 @@ retrieveThermalClusterGenerationResults(const std::shared_ptr<ISimulation<Econom
double getThermalGenerationAthour(const std::shared_ptr<ISimulation<Economy>>& simulation, ThermalCluster* cluster, unsigned int hour)
{
auto result = retrieveThermalClusterGenerationResults(simulation, cluster);
return (*result)[cluster->index].avgdata.hourly[hour];
return (*result)[cluster->areaWideIndex].avgdata.hourly[hour];
}


Expand Down

0 comments on commit aba7fab

Please sign in to comment.