From f3edc0eb83714c4a73d74954b26d184064e30632 Mon Sep 17 00:00:00 2001 From: sylvmara Date: Wed, 4 Dec 2024 15:23:20 +0100 Subject: [PATCH] Corrected a bug where part of the reserves were transmitted from one area to another, creating segfaults --- src/solver/variable/include/antares/solver/variable/state.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/solver/variable/include/antares/solver/variable/state.hxx b/src/solver/variable/include/antares/solver/variable/state.hxx index dadb3f82d6..9c16d562fe 100644 --- a/src/solver/variable/include/antares/solver/variable/state.hxx +++ b/src/solver/variable/include/antares/solver/variable/state.hxx @@ -95,7 +95,8 @@ inline void State::initFromAreaIndex(const unsigned int areaIndex, uint numSpace for (int h=0 ; h< HOURS_PER_YEAR; h++) { reserveParticipationPerLTStorageClusterForYear[hourInTheYear].clear(); - + reserveParticipationPerSTStorageClusterForYear[hourInTheYear].clear(); + reserveParticipationPerThermalClusterForYear[hourInTheYear].clear(); } } switch (simulationMode)