bug fix setting number of threads
This commit is contained in:
parent
db5f6a4e5f
commit
e5eccfe858
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
/*--------------------------------------------------------*\
|
||||
|
|
Loading…
Reference in a new issue