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:
parent
6c27c72585
commit
7564fedf68
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user