1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-18 15:57:05 +01:00

Ward Identity test improvements and conserved current bug fixes

This commit is contained in:
Lanny91
2017-06-05 11:55:41 +01:00
parent 23135aa58a
commit eec79e0a1e
3 changed files with 42 additions and 24 deletions

View File

@ -700,8 +700,14 @@ void WilsonFermion5D<Impl>::ContractConservedCurrent(PropagatorField &q_in_1,
Kernels::ContractConservedCurrentInternal(q1_s, q2_s, tmp, Umu, curr_type, mu);
// Axial current sign
Real G_s = (curr_type == Current::Axial) ? ((s < Ls/2) ? -1. : 1.) : 1.;
q_out += G_s*tmp;
if ((curr_type == Current::Axial) && (s < (Ls / 2)))
{
q_out -= tmp;
}
else
{
q_out += tmp;
}
}
}