bug fix setting number of threads

This commit is contained in:
Gregor Weiss 2024-02-09 10:31:30 +01:00
parent db5f6a4e5f
commit e5eccfe858
Signed by: Gregor Weiss
GPG key ID: 61E170A8BBFE5756

View file

@ -2593,7 +2593,10 @@ bwc_initialize_field(bwc_data *const data)
! run. !
\*--------------------------------------------------------*/
#ifdef _OPENMP
control->nThreads = 1;
#pragma omp parallel
{
control->nThreads = omp_get_num_threads();
}
#endif
/*--------------------------------------------------------*\