From 4e3458516a691941a17e765491d511c6f9388a27 Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 7 Mar 2018 16:50:13 +0000 Subject: [PATCH] Reverting after fixing issue with extract merge --- lib/qcd/action/gauge/GaugeImplementations.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/qcd/action/gauge/GaugeImplementations.h b/lib/qcd/action/gauge/GaugeImplementations.h index 0c417e4e..a14aec1b 100644 --- a/lib/qcd/action/gauge/GaugeImplementations.h +++ b/lib/qcd/action/gauge/GaugeImplementations.h @@ -102,13 +102,11 @@ public: Lattice> coor(grid); LatticeCoordinate(coor, 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 + GaugeLinkField tmp(grid); + tmp = adj(Link); + tmp = where(coor == Lmu, conjugate(tmp), tmp); + return Cshift(tmp, mu, -1); // moves towards positive mu } - static inline GaugeLinkField CovShiftIdentityForward(const GaugeLinkField &Link, int mu) { return Link; @@ -121,11 +119,10 @@ public: Lattice> coor(grid); LatticeCoordinate(coor, mu); - GaugeLinkField tmp1(grid); - GaugeLinkField tmp2(grid); - tmp1 = Cshift(Link, mu, 1); - tmp2 = where(coor == Lmu, conjugate(tmp1), tmp1); - return tmp2; + GaugeLinkField tmp(grid); + tmp = Cshift(Link, mu, 1); + tmp = where(coor == Lmu, conjugate(tmp), tmp); + return tmp; } static inline bool isPeriodicGaugeField(void) { return false; }