mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +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++){
|
for(int b=0;b<nn;b++){
|
||||||
|
|
||||||
|
subspace[b] = zero;
|
||||||
gaussian(RNG,noise);
|
gaussian(RNG,noise);
|
||||||
scale = std::pow(norm2(noise),-0.5);
|
scale = std::pow(norm2(noise),-0.5);
|
||||||
noise=noise*scale;
|
noise=noise*scale;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user