mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
Code cleaning
This commit is contained in:
parent
622a21bec6
commit
c504b4dbad
@ -128,8 +128,7 @@ void TWardIdentity<FImpl>::execute(void)
|
|||||||
LOG(Message) << "Performing Ward Identity checks for quark '" << par().q
|
LOG(Message) << "Performing Ward Identity checks for quark '" << par().q
|
||||||
<< "'." << std::endl;
|
<< "'." << std::endl;
|
||||||
|
|
||||||
PropagatorField psi(env().getGrid()), tmp(env().getGrid()),
|
PropagatorField tmp(env().getGrid()), vector_WI(env().getGrid());
|
||||||
vector_WI(env().getGrid());
|
|
||||||
PropagatorField &q = *env().template getObject<PropagatorField>(par().q);
|
PropagatorField &q = *env().template getObject<PropagatorField>(par().q);
|
||||||
FMat &act = *(env().template getObject<FMat>(par().action));
|
FMat &act = *(env().template getObject<FMat>(par().action));
|
||||||
Gamma g5(Gamma::Algebra::Gamma5);
|
Gamma g5(Gamma::Algebra::Gamma5);
|
||||||
@ -149,6 +148,7 @@ void TWardIdentity<FImpl>::execute(void)
|
|||||||
|
|
||||||
if (par().test_axial)
|
if (par().test_axial)
|
||||||
{
|
{
|
||||||
|
PropagatorField psi(env().getGrid());
|
||||||
LatticeComplex PP(env().getGrid()), axial_defect(env().getGrid()),
|
LatticeComplex PP(env().getGrid()), axial_defect(env().getGrid()),
|
||||||
PJ5q(env().getGrid());
|
PJ5q(env().getGrid());
|
||||||
std::vector<TComplex> axial_buf;
|
std::vector<TComplex> axial_buf;
|
||||||
@ -159,7 +159,7 @@ void TWardIdentity<FImpl>::execute(void)
|
|||||||
{
|
{
|
||||||
act.ContractConservedCurrent(q, q, tmp, Current::Axial, mu);
|
act.ContractConservedCurrent(q, q, tmp, Current::Axial, mu);
|
||||||
tmp -= Cshift(tmp, mu, -1);
|
tmp -= Cshift(tmp, mu, -1);
|
||||||
axial_defect += 2.*trace(g5*tmp);
|
axial_defect += trace(g5*tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get <P|J5q> for 5D (zero for 4D) and <P|P>.
|
// Get <P|J5q> for 5D (zero for 4D) and <P|P>.
|
||||||
|
Loading…
Reference in New Issue
Block a user