1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Fixed single precision compatibility issues

This commit is contained in:
Lanny91 2017-02-07 13:59:29 +00:00
parent bdd2765461
commit 2b2fc6453f
4 changed files with 4 additions and 4 deletions

View File

@ -181,7 +181,7 @@ void TMeson<FImpl1, FImpl2>::execute(void)
LatticeCoordinate(coor, mu);
ph = ph + p[mu]*coor*((1./(env().getGrid()->_fdimensions[mu])));
}
ph = exp(-2*M_PI*i*ph);
ph = exp(-(Real)(2*M_PI)*i*ph);
parseGammaString(gammaList);

View File

@ -133,7 +133,7 @@ void TWall<FImpl>::execute(void)
LatticeCoordinate(coor, mu);
ph = ph + p[mu]*coor*((1./(env().getGrid()->_fdimensions[mu])));
}
ph = exp(-2*M_PI*i*ph);
ph = exp(-(Real)(2*M_PI)*i*ph);
sliceSum<SitePropagator>(ph*q, prop, Tp);
}

View File

@ -152,7 +152,7 @@ void TSeqGamma<FImpl>::execute(void)
LatticeCoordinate(coor, mu);
ph = ph + p[mu]*coor*((1./(env().getGrid()->_fdimensions[mu])));
}
ph = exp(2*M_PI*i*ph);
ph = exp((Real)(2*M_PI)*i*ph);
LatticeCoordinate(t, Tp);
src = where((t >= par().tA) and (t <= par().tB), ph*(g*q), 0.*q);
}

View File

@ -134,7 +134,7 @@ void TWall<FImpl>::execute(void)
LatticeCoordinate(coor, mu);
ph = ph + p[mu]*coor*((1./(env().getGrid()->_fdimensions[mu])));
}
ph = exp(2*M_PI*i*ph);
ph = exp((Real)(2*M_PI)*i*ph);
LatticeCoordinate(t, Tp);
src = 1.;
src = where((t == par().tW), src*ph, 0.*src);