Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/refactoring parallel years #180

Open
wants to merge 9 commits into
base: New-Antares-Emulator-2
Choose a base branch
from
2 changes: 2 additions & 0 deletions src/libs/antares/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ set(SRC
study.h
study/estimate.memory-footprint.cpp
study/study.cpp
study/parallel-years.cpp
study/parallel-years.h
study/correlation-updater.hxx
study/study.importprepro.cpp
study/memory-usage.h
Expand Down
9 changes: 1 addition & 8 deletions src/libs/antares/study/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,8 @@ bool Study::internalLoadFromFolder(const String& path, const StudyLoadOptions& o
// -------------------------
// Getting the number of logical cores to use before loading and creating the areas :
// Areas need this number to be up-to-date at construction.
getNumberOfCores(options.forceParallel, options.maxNbYearsInParallel);

// In case the study is run in the draft mode, only 1 core is allowed
if (parameters.mode == Data::stdmAdequacyDraft)
maxNbYearsInParallel = 1;

// In case parallel mode was not chosen, only 1 core is allowed
if (!options.enableParallel && !options.forceParallel)
maxNbYearsInParallel = 1;
getNumberOfCores(options.forceParallel, options.enableParallel, options.maxNbYearsInParallel);

// End logical core --------

Expand Down
Loading