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

Corrected incorrect usage of ExtractSlice for conserved current code.

This commit is contained in:
Lanny91 2017-04-26 17:25:28 +01:00
parent 6299dd35f5
commit d2003f24f4
2 changed files with 4 additions and 4 deletions

View File

@ -150,9 +150,9 @@ void TWardIdentity<FImpl>::execute(void)
// Get PJ5q for 5D (zero for 4D).
if (Ls_ > 1)
{
ExtractSlice(psi, q, 0, Ls_/2 - 1);
ExtractSlice(psi, q, Ls_/2 - 1, 0);
psi = 0.5 * (psi + g5*psi);
ExtractSlice(tmp, q, 0, Ls_/2);
ExtractSlice(tmp, q, Ls_/2, 0);
psi += 0.5 * (tmp - g5*tmp);
PJ5q = trace(adj(psi)*psi);
}

View File

@ -703,8 +703,8 @@ void WilsonFermion5D<Impl>::ContractConservedCurrent(PropagatorField &q_in_1,
q_out = zero;
for (int s = 0; s < Ls; ++s)
{
ExtractSlice(q1_s, q_in_1, 0, s);
ExtractSlice(q2_s, q_in_2, 0, Ls - s - 1);
ExtractSlice(q1_s, q_in_1, s, 0);
ExtractSlice(q2_s, q_in_2, Ls - s - 1, 0);
Kernels::ContractConservedCurrentInternal(q1_s, q2_s, tmp, Umu, curr_type, mu);
// Axial current sign