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