1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00: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++)
{
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);
}
pokeSite(Tone, out, x0);