diff --git a/src/libs/antares/study/include/antares/study/parts/hydro/container.h b/src/libs/antares/study/include/antares/study/parts/hydro/container.h index 20ad13b932..aba05fcb6b 100644 --- a/src/libs/antares/study/include/antares/study/parts/hydro/container.h +++ b/src/libs/antares/study/include/antares/study/parts/hydro/container.h @@ -33,7 +33,7 @@ namespace Antares::Data //! The maximum number of days in a year constexpr size_t dayYearCount = 366; -struct HydroDailyLoadDemand +struct DailyDemand { //! Net demand, for each day of the year, for each area double DLN = 0.; @@ -41,7 +41,7 @@ struct HydroDailyLoadDemand double DLE = 0.; }; -struct HydroMonthlyDemandGeneration +struct MonthlyGenerationTargetData { //! Monthly local effective demand double MLE = 0.; @@ -56,8 +56,8 @@ struct HydroMonthlyDemandGeneration //! Hydro Management Data for a given area struct TimeDependantHydroManagementData { - std::array daily{0}; - std::array monthly{0}; + std::array daily{0}; + std::array monthly{0}; }; //! Area Hydro Management Data for a given year diff --git a/src/solver/hydro/include/antares/solver/hydro/management/HydroInputsChecker.h b/src/solver/hydro/include/antares/solver/hydro/management/HydroInputsChecker.h index c6918fbaa0..b1ac49e89b 100644 --- a/src/solver/hydro/include/antares/solver/hydro/management/HydroInputsChecker.h +++ b/src/solver/hydro/include/antares/solver/hydro/management/HydroInputsChecker.h @@ -35,14 +35,11 @@ class HydroInputsChecker private: Data::AreaList& areas_; - const Data::Parameters& parameters_; const Date::Calendar& calendar_; - Data::SimulationMode simulationMode_; const uint firstYear_; const uint endYear_; PrepareInflows prepareInflows_; MinGenerationScaling minGenerationScaling_; - bool refresh_ = false; std::map checked_years_; //! return false if checkGenerationPowerConsistency or checkMinGeneration returns false diff --git a/src/solver/hydro/management/HydroInputsChecker.cpp b/src/solver/hydro/management/HydroInputsChecker.cpp index 779846bccf..1b28c5e13b 100644 --- a/src/solver/hydro/management/HydroInputsChecker.cpp +++ b/src/solver/hydro/management/HydroInputsChecker.cpp @@ -33,14 +33,11 @@ namespace Antares HydroInputsChecker::HydroInputsChecker(Antares::Data::Study& study): areas_(study.areas), - parameters_(study.parameters), calendar_(study.calendar), - simulationMode_(study.runtime->mode), firstYear_(0), endYear_(1 + study.runtime->rangeLimits.year[Data::rangeEnd]), prepareInflows_(study.areas, study.calendar), - minGenerationScaling_(study.areas, study.calendar), - refresh_(false) + minGenerationScaling_(study.areas, study.calendar) { for (auto year = firstYear_; year < endYear_; ++year) { diff --git a/src/solver/hydro/management/monthly.cpp b/src/solver/hydro/management/monthly.cpp index da6e75a7cd..6a5776a1c8 100644 --- a/src/solver/hydro/management/monthly.cpp +++ b/src/solver/hydro/management/monthly.cpp @@ -158,7 +158,7 @@ void HydroManagement::prepareMonthlyOptimalGenerations( { uint indexArea = 0; areas_.each( - [this, &random_reservoir_level, &y, &indexArea](Data::Area& area) + [this, &random_reservoir_level, &y, &indexArea, &hydro_specific_map](Data::Area& area) { auto& data = area.hydro.managementData[y]; auto& hydro_specific = hydro_specific_map[&area]; diff --git a/src/solver/simulation/include/antares/solver/simulation/solver.hxx b/src/solver/simulation/include/antares/solver/simulation/solver.hxx index 439a6debea..05bf9a7850 100644 --- a/src/solver/simulation/include/antares/solver/simulation/solver.hxx +++ b/src/solver/simulation/include/antares/solver/simulation/solver.hxx @@ -965,7 +965,6 @@ void ISimulation::loopThroughYears(uint firstYear, // Loop over sets of parallel years to check hydro inputs for (const auto& batch: setsOfParallelYears) { - // if refresh break if (batch.regenerateTS) { break;