From 091d701ffd4f2d0531e8dfc207487e5d66670b8b Mon Sep 17 00:00:00 2001 From: Abdoulbari Zaher <32519851+a-zakir@users.noreply.github.com> Date: Fri, 21 Jun 2024 21:37:13 +0200 Subject: [PATCH 1/4] Update management.cpp --- src/solver/hydro/management/management.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/hydro/management/management.cpp b/src/solver/hydro/management/management.cpp index 7a16249a43..6dcc8b1f44 100644 --- a/src/solver/hydro/management/management.cpp +++ b/src/solver/hydro/management/management.cpp @@ -202,7 +202,7 @@ void HydroManagement::prepareEffectiveDemand( HydroSpecificMap& hydro_specific_map) { areas_.each( - [this](Data::Area& area) + [this, &year](Data::Area& area) { auto& data = area.hydro.managementData[year]; auto& hydro_specific = hydro_specific_map[&area]; From 2e71488d94909ad49a3d171288d7b226cc049d04 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zaher <32519851+a-zakir@users.noreply.github.com> Date: Fri, 21 Jun 2024 21:48:02 +0200 Subject: [PATCH 2/4] Update management.cpp --- src/solver/hydro/management/management.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/hydro/management/management.cpp b/src/solver/hydro/management/management.cpp index 6dcc8b1f44..9a86343b80 100644 --- a/src/solver/hydro/management/management.cpp +++ b/src/solver/hydro/management/management.cpp @@ -202,7 +202,7 @@ void HydroManagement::prepareEffectiveDemand( HydroSpecificMap& hydro_specific_map) { areas_.each( - [this, &year](Data::Area& area) + [this, &year, &hydro_specific_map](Data::Area& area) { auto& data = area.hydro.managementData[year]; auto& hydro_specific = hydro_specific_map[&area]; From 9aaecac09669e1a7d3f265b7a5f08616cd5d35d2 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zaher <32519851+a-zakir@users.noreply.github.com> Date: Fri, 21 Jun 2024 21:59:10 +0200 Subject: [PATCH 3/4] Update management.cpp --- src/solver/hydro/management/management.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/hydro/management/management.cpp b/src/solver/hydro/management/management.cpp index 9a86343b80..98b3b0b562 100644 --- a/src/solver/hydro/management/management.cpp +++ b/src/solver/hydro/management/management.cpp @@ -216,7 +216,7 @@ void HydroManagement::prepareEffectiveDemand( double effectiveDemand = 0; // area.hydro.allocation is indexed by area index area.hydro.allocation.eachNonNull( - [this, &effectiveDemand, &day](unsigned areaIndex, double value) + [this, &effectiveDemand, &day, &hydro_specific_map](unsigned areaIndex, double value) { const auto* area = areas_.byIndex[areaIndex]; effectiveDemand += hydro_specific_map[area].daily[day].DLN * value; From 904806c6604680dd825469fb2232cd87c5e9e4f6 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zaher <32519851+a-zakir@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:12:53 +0200 Subject: [PATCH 4/4] Update ScenarioBuilderOwner.cpp --- src/solver/application/ScenarioBuilderOwner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/application/ScenarioBuilderOwner.cpp b/src/solver/application/ScenarioBuilderOwner.cpp index 02f9c7222d..15d7d8f5ad 100644 --- a/src/solver/application/ScenarioBuilderOwner.cpp +++ b/src/solver/application/ScenarioBuilderOwner.cpp @@ -53,7 +53,7 @@ void Antares::Solver::ScenarioBuilderOwner::callScenarioBuilder() { if (study_.parameters.useCustomScenario) { ApplyCustomScenario(study_); - CheckFinalReservoirLevelsConfiguration(study); + CheckFinalReservoirLevelsConfiguration(study_); } }