1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00

Hadrons: PR#177: Electrify gauge: Single Precision fix

This commit is contained in:
Vera Guelpers 2018-11-07 15:01:22 +00:00
parent 4c016cc1a4
commit e0a79a5bbf

View File

@ -139,7 +139,7 @@ void TElectrify<GImpl>::execute(void)
for(unsigned int mu = 0; mu < env().getNd(); mu++)
{
eiAmu = exp(i * par().e * par().charge * PeekIndex<LorentzIndex>(A, mu));
eiAmu = exp(i * (Real)(par().e * par().charge) * PeekIndex<LorentzIndex>(A, mu));
PokeIndex<LorentzIndex>(Ue, PeekIndex<LorentzIndex>(U, mu) * eiAmu, mu);
}
}