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

Improvements to sequential conserved current test and small bugfix.

This commit is contained in:
Lanny91
2017-06-05 15:55:32 +01:00
parent eec79e0a1e
commit 622a21bec6
2 changed files with 13 additions and 6 deletions

View File

@ -327,6 +327,7 @@ void WilsonKernels<Impl>::SeqConservedCurrentInternal(const PropagatorField &q_i
GaugeLinkField Umu(U._grid);
Umu = PeekIndex<LorentzIndex>(U, mu);
Lattice<iScalar<vInteger>> t(q_in._grid);
LatticeCoordinate(t, mu);
tmp = this->CovShiftForward(Umu, mu, q_in)*ph;
tmp = where((t >= tmin) and (t <= tmax), tmp, 0.*tmp);