Skip to content

Commit

Permalink
re-use object
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Jun 13, 2024
1 parent 167114b commit c6fd093
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ void ISimulation<ImplementationType>::loopThroughYears(uint firstYear,

// Number of threads to perform the jobs waiting in the queue
pQueueService->maximumThreadCount(pNbMaxPerformedYearsInParallel);
HydroInputsChecker hydroInputsChecker(study);

// Loop over sets of parallel years to check hydro inputs
for (auto batch: setsOfParallelYears)
Expand All @@ -1013,7 +1014,6 @@ void ISimulation<ImplementationType>::loopThroughYears(uint firstYear,
regenerateHydroTimeSeries(batch.yearForTSgeneration);
}

HydroInputsChecker hydroInputsChecker(study);
for (auto year: batch.yearsIndices)
{
hydroInputsChecker.Execute(year);
Expand Down

0 comments on commit c6fd093

Please sign in to comment.