1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 13:40:46 +01:00

QedFVol: Fix single precision build error

This commit is contained in:
James Harrison 2018-02-14 17:37:18 +00:00
parent 5f483df16b
commit 69e4ecc1d2

View File

@ -117,7 +117,8 @@ namespace QCD{
for(int mu = 0; mu < nd; mu++) for(int mu = 0; mu < nd; mu++)
{ {
LatticeCoordinate(xmu,mu); LatticeCoordinate(xmu,mu);
xmu = where(xmu < l[mu]/2.0, xmu, xmu-double(l[mu])); Real lo2 = l[mu]/2.0;
xmu = where(xmu < lo2, xmu, xmu-double(l[mu]));
out = out + toComplex(4*M_PI*M_PI*xmu*xmu); out = out + toComplex(4*M_PI*M_PI*xmu*xmu);
} }
pokeSite(Tone, out, x0); pokeSite(Tone, out, x0);