mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3044 from GitPaean/correcting_threading_output
correcting the output of the number of threads
This commit is contained in:
commit
009feaa35d
@ -307,6 +307,11 @@ namespace Opm
|
||||
threads = omp_get_max_threads();
|
||||
else
|
||||
threads = std::min(2, omp_get_max_threads());
|
||||
|
||||
const int input_threads = EWOMS_GET_PARAM(TypeTag, int, ThreadsPerProcess);
|
||||
|
||||
if (input_threads > 0)
|
||||
threads = std::min(input_threads, omp_get_max_threads());
|
||||
#endif
|
||||
|
||||
#if HAVE_MPI
|
||||
|
Loading…
Reference in New Issue
Block a user