mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Uncomment OpmLog warning
This commit is contained in:
parent
eb782d9ae2
commit
5ba8e87f55
@ -302,10 +302,9 @@ namespace Opm {
|
|||||||
if (result.ec == std::errc() && omp_num_threads > 0) {
|
if (result.ec == std::errc() && omp_num_threads > 0) {
|
||||||
// Set threads to omp_num_threads if it was successfully parsed and is positive
|
// Set threads to omp_num_threads if it was successfully parsed and is positive
|
||||||
threads = omp_num_threads;
|
threads = omp_num_threads;
|
||||||
// Warning in 'Main.hpp', where this code is duplicated
|
if (requested_threads > 0) {
|
||||||
// if (requested_threads > 0) {
|
OpmLog::warning("Environment variable OMP_NUM_THREADS takes precedence over the --threads-per-process cmdline argument.");
|
||||||
// OpmLog::warning("Environment variable OMP_NUM_THREADS takes precedence over the --threads-per-process cmdline argument.");
|
}
|
||||||
// }
|
|
||||||
} else {
|
} else {
|
||||||
OpmLog::warning("Invalid value for OMP_NUM_THREADS environment variable.");
|
OpmLog::warning("Invalid value for OMP_NUM_THREADS environment variable.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user