Move calculation of number of threads outside of .omp parallel.

This commit is contained in:
Paul Romano 2014-01-14 21:26:40 -05:00
parent c439c3dc5d
commit b142ff6458

View file

@ -836,8 +836,9 @@ contains
! generation, there is also a 'master_fission_bank' that is used to collect
! the sites from each thread.
n_threads = omp_get_max_threads()
!$omp parallel
n_threads = omp_get_num_threads()
thread_id = omp_get_thread_num()
if (thread_id == 0) then