Avoid repeated rewriting.

This commit is contained in:
Michal Tóth 2025-01-09 09:47:08 +01:00
parent b865e80c2f
commit f267df98b4

View File

@ -731,7 +731,9 @@ private:
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.
omp_set_num_threads(threads);
}