Enclose global leakage tally in omp critical.

This commit is contained in:
Paul Romano 2013-08-18 12:50:34 -04:00
parent 8f0f884eec
commit a0ddce284e

View file

@ -408,8 +408,12 @@ contains
end if
! Score to global leakage tally
if (tallies_on) global_tallies(LEAKAGE) % value = &
if (tallies_on) then
!$omp critical
global_tallies(LEAKAGE) % value = &
global_tallies(LEAKAGE) % value + p % wgt
!$omp end critical
end if
! Display message
if (verbosity >= 10 .or. trace) then