mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Set limit to the number of threads if it is unset when we ask for the number.
This commit is contained in:
parent
25cd79c04b
commit
b865e80c2f
@ -731,6 +731,9 @@ private:
|
||||
std::cout << ("Warning: Invalid value for OMP_NUM_THREADS environment variable.") << std::endl;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Set a limit to OMP threads. Defaults can saturate the whole machine.
|
||||
omp_set_num_threads(threads);
|
||||
}
|
||||
|
||||
first_time = false;
|
||||
|
Loading…
Reference in New Issue
Block a user