1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-10 19:36:56 +01:00

Threading bug in RNG fill fixed.

This commit is contained in:
Peter Boyle
2015-08-19 14:41:05 +01:00
parent 8b070ae54c
commit fdfe194c41
2 changed files with 6 additions and 1 deletions

View File

@ -263,11 +263,11 @@ namespace Grid {
int osites=_grid->oSites();
int words=sizeof(scalar_object)/sizeof(scalar_type);
std::vector<scalar_object> buf(Nsimd);
PARALLEL_FOR_LOOP
for(int ss=0;ss<osites;ss++){
std::vector<scalar_object> buf(Nsimd);
for(int m=0;m<multiplicity;m++) {// Draw from same generator multiplicity times
int sm=multiplicity*ss+m; // Maps the generator site to the fine site