mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00: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 r=rand();
|
||||
grid->Broadcast(0,r);
|
||||
if ( (r%param.BoundsCheckFreq)==0 ) {
|
||||
if ( param.BoundsCheckFreq && ((r%param.BoundsCheckFreq)==0) ) {
|
||||
FermionField gauss(NumOp.FermionRedBlackGrid());
|
||||
gauss = Noise;
|
||||
HighBoundCheck(MdagM,gauss,param.hi);
|
||||
|
Loading…
Reference in New Issue
Block a user