mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-15 18:38:23 +01:00
[Fix] Fix setNumberThreads()-method parameter in Simulation.hpp.
This commit is contained in:
parent
449647010a
commit
f7dbf3abaf
@ -266,7 +266,7 @@ public:
|
|||||||
* maximum number of processors is set as the default case during Simulation
|
* maximum number of processors is set as the default case during Simulation
|
||||||
* construction.
|
* construction.
|
||||||
*/
|
*/
|
||||||
void setNumberThreads(int num_threads) {
|
void setNumberThreads(int numThreads) {
|
||||||
if (numThreads > 0 && numThreads <= omp_get_num_procs()) {
|
if (numThreads > 0 && numThreads <= omp_get_num_procs()) {
|
||||||
this->numThreads = numThreads;
|
this->numThreads = numThreads;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user