1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-05 11:45:56 +01:00

WilsonMG: Set subspace to zero to avoid random behavior

This commit is contained in:
Daniel Richtmann 2018-05-23 12:24:25 +02:00
parent 6c27c72585
commit 7564fedf68
No known key found for this signature in database
GPG Key ID: B33C490AF0772057

View File

@ -211,6 +211,7 @@ namespace Grid {
for(int b=0;b<nn;b++){
subspace[b] = zero;
gaussian(RNG,noise);
scale = std::pow(norm2(noise),-0.5);
noise=noise*scale;