1
0
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:
Peter Boyle 2022-06-27 12:15:55 -04:00
parent dc000d10ee
commit d44a57b0af

View File

@ -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);