mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-04 06:58:05 +01:00
WilsonMG: Set subspace to zero to avoid random behavior
This commit is contained in:
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user