mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-04 19:25:56 +01:00
Allow frequency=0 to disable
This commit is contained in:
parent
dc000d10ee
commit
d44a57b0af
@ -185,7 +185,7 @@ NAMESPACE_BEGIN(Grid);
|
|||||||
auto grid = NumOp.FermionGrid();
|
auto grid = NumOp.FermionGrid();
|
||||||
auto r=rand();
|
auto r=rand();
|
||||||
grid->Broadcast(0,r);
|
grid->Broadcast(0,r);
|
||||||
if ( (r%param.BoundsCheckFreq)==0 ) {
|
if ( param.BoundsCheckFreq && ((r%param.BoundsCheckFreq)==0) ) {
|
||||||
FermionField gauss(NumOp.FermionRedBlackGrid());
|
FermionField gauss(NumOp.FermionRedBlackGrid());
|
||||||
gauss = Noise;
|
gauss = Noise;
|
||||||
HighBoundCheck(MdagM,gauss,param.hi);
|
HighBoundCheck(MdagM,gauss,param.hi);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user