[Fix] Fix setNumberThreads()-method parameter in Simulation.hpp.

This commit is contained in:
DannyPuhan 2024-06-06 08:59:02 +02:00
parent 449647010a
commit f7dbf3abaf

View File

@ -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 {