Skip to content

Commit

Permalink
[DEV] Removed file surtubines
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Sep 21, 2023
1 parent f948eb7 commit 1157ea5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 133 deletions.
1 change: 0 additions & 1 deletion src/solver/hydro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ set(SRC_EXT_SOLVER_H2O_DAILY
daily/h2o_j_instanciation.cpp
daily/h2o_j_optimiser_un_mois.cpp
daily/h2o_j_resoudre_le_probleme_lineaire.cpp
daily/h2o_j_lisser_les_sur_turbines.cpp
daily/h2o_j_sys.h
daily/h2o_j_ajouter_bruit_au_cout.cpp
)
Expand Down
1 change: 0 additions & 1 deletion src/solver/hydro/daily/h2o_j_fonctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ void H2O_j_ConstruireLesVariables(int,
void H2O_J_InitialiserLesBornesdesVariables(DONNEES_MENSUELLES*, int);
void H2O_J_InitialiserLeSecondMembre(DONNEES_MENSUELLES*, int);
void H2O_J_ResoudreLeProblemeLineaire(DONNEES_MENSUELLES*, int);
void H2O_J_LisserLesSurTurbines(DONNEES_MENSUELLES*, int);
void H2O_J_AjouterBruitAuCout(DONNEES_MENSUELLES&);

#endif /* __SOLVER_H2O_J_FONCTIONS__ */
123 changes: 0 additions & 123 deletions src/solver/hydro/daily/h2o_j_lisser_les_sur_turbines.cpp

This file was deleted.

1 change: 0 additions & 1 deletion src/solver/hydro/daily/h2o_j_optimiser_un_mois.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ void H2O_J_OptimiserUnMois(DONNEES_MENSUELLES* DonneesMensuelles)
H2O_J_InitialiserLeSecondMembre(DonneesMensuelles, NumeroDeProbleme);
H2O_J_InitialiserLesBornesdesVariables(DonneesMensuelles, NumeroDeProbleme);
H2O_J_ResoudreLeProblemeLineaire(DonneesMensuelles, NumeroDeProbleme);
H2O_J_LisserLesSurTurbines(DonneesMensuelles, NumeroDeProbleme);

return;
}
11 changes: 4 additions & 7 deletions src/solver/simulation/sim_alloc_probleme_hebdo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,12 @@ void SIM_AllocationProblemeDonneesGenerales(PROBLEME_HEBDO& problem,
problem.previousYearFinalLevels.resize(0);
if (problem.hydroHotStart)
{
for (uint i = 0; i <= nbPays; i++)
if (std::any_of(study.areas.cbegin(), study.areas.cend(), [](const auto& pair)
{ return pair.second->hydro.reservoirManagement; }))
{
auto& area = *(study.areas[i]);
if (area.hydro.reservoirManagement)
{
problem.previousYearFinalLevels.assign(nbPays, 0.);
break;
}
problem.previousYearFinalLevels.assign(nbPays, 0.);
}

}

problem.ReserveJMoins1.resize(nbPays);
Expand Down

0 comments on commit 1157ea5

Please sign in to comment.