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

Dont alias lhs and rhs in a where statement

This commit is contained in:
paboyle 2018-03-06 04:14:13 -08:00
parent 3cb1b545d0
commit 40699221e2

View File

@ -102,11 +102,13 @@ public:
Lattice<iScalar<vInteger>> coor(grid);
LatticeCoordinate(coor, mu);
GaugeLinkField tmp(grid);
tmp = adj(Link);
tmp = where(coor == Lmu, conjugate(tmp), tmp);
return Cshift(tmp, mu, -1); // moves towards positive mu
GaugeLinkField tmp1(grid);
GaugeLinkField tmp2(grid);
tmp1 = adj(Link);
tmp2 = where(coor == Lmu, conjugate(tmp1), tmp1);
return Cshift(tmp2, mu, -1); // moves towards positive mu
}
static inline GaugeLinkField
CovShiftIdentityForward(const GaugeLinkField &Link, int mu) {
return Link;
@ -119,10 +121,11 @@ public:
Lattice<iScalar<vInteger>> coor(grid);
LatticeCoordinate(coor, mu);
GaugeLinkField tmp(grid);
tmp = Cshift(Link, mu, 1);
tmp = where(coor == Lmu, conjugate(tmp), tmp);
return tmp;
GaugeLinkField tmp1(grid);
GaugeLinkField tmp2(grid);
tmp1 = Cshift(Link, mu, 1);
tmp2 = where(coor == Lmu, conjugate(tmp1), tmp1);
return tmp2;
}
static inline bool isPeriodicGaugeField(void) { return false; }