Skip to content

Commit

Permalink
Qualifier order
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Omnès <florian.omnes@rte-france.com>
  • Loading branch information
JasonMarechal25 and flomnes committed May 24, 2024
1 parent dd0042f commit ff5b207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/SimulationObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void SimulationObserver::notifyHebdoProblem(const PROBLEME_HEBDO* problemeHebdo,
{
if (optimizationNumber != 1) return; //We only care about first optimization
Solver::HebdoProblemToLpsTranslator translator;
unsigned int const year = problemeHebdo->year + 1;
unsigned int const week = problemeHebdo->weekInTheYear + 1;
const unsigned int year = problemeHebdo->year + 1;
const unsigned int week = problemeHebdo->weekInTheYear + 1;
//common_data and weekly_data computed before the mutex lock to prevent blocking the thread
auto [common_data, weekly_data] = translate(problemeHebdo, name, translator, year, week);
std::lock_guard lock(mutex_);
Expand Down

0 comments on commit ff5b207

Please sign in to comment.