From 3cb1b545d00fe576a63d8fd437ae9731a2f95578 Mon Sep 17 00:00:00 2001 From: paboyle Date: Tue, 6 Mar 2018 04:13:26 -0800 Subject: [PATCH] Don't alias the variables with a where statement. --- lib/qcd/utils/CovariantCshift.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/qcd/utils/CovariantCshift.h b/lib/qcd/utils/CovariantCshift.h index ed96f3bf..ed4e2d3f 100644 --- a/lib/qcd/utils/CovariantCshift.h +++ b/lib/qcd/utils/CovariantCshift.h @@ -95,11 +95,13 @@ namespace ConjugateBC { Lattice > coor(grid); LatticeCoordinate(coor,mu); - Lattice field_bc = Cshift(field,mu,1);// moves towards negative mu; + Lattice tmp1(grid); + Lattice tmp2(grid); - field_bc = where(coor==Lmu,conjugate(field_bc),field_bc); - // std::cout<<"Gparity::CovCshiftForward mu="< Lattice CovShiftBackward(const Lattice &Link, @@ -114,12 +116,13 @@ namespace ConjugateBC { Lattice > coor(grid); LatticeCoordinate(coor,mu); - Lattice tmp(grid); + Lattice tmp1(grid); + Lattice tmp2(grid); - tmp = adj(Link)*field; - tmp = where(coor==Lmu,conjugate(tmp),tmp); - // std::cout<<"Gparity::CovCshiftBackward mu="<