diff --git a/lib/qcd/utils/WilsonLoops.h b/lib/qcd/utils/WilsonLoops.h index 69b86859..e3885432 100644 --- a/lib/qcd/utils/WilsonLoops.h +++ b/lib/qcd/utils/WilsonLoops.h @@ -30,6 +30,7 @@ public: static void sitePlaquette(LatticeComplex &Plaq,const std::vector &U) { LatticeComplex sitePlaq(U[0]._grid); + Plaq=zero; for(int mu=1;mu U(4,Umu._grid); + for(int mu=0;mu(Umu,mu); } @@ -72,13 +74,15 @@ public: ////////////////////////////////////////////////// static void Staple(GaugeMat &staple,const GaugeLorentz &Umu,int mu){ - std::vector U(4,Umu._grid); + GridBase *grid = Umu._grid; + + std::vector U(4,grid); for(int d=0;d(Umu,d); } staple = zero; - GaugeMat tmp(U[0]._grid); + GaugeMat tmp(grid); for(int nu=0;nu