mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-10 03:17:07 +01:00
WilsonMG: Set subspace to zero to avoid random behavior
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user