1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-27 22:25:56 +01:00

Namespace

This commit is contained in:
paboyle 2018-01-14 21:53:05 +00:00
parent 59ba9ff3bb
commit f4623fd551

View File

@ -31,8 +31,8 @@ directory
/* END LEGAL */ /* END LEGAL */
#ifndef QCD_UTILS_WILSON_LOOPS_H #ifndef QCD_UTILS_WILSON_LOOPS_H
#define QCD_UTILS_WILSON_LOOPS_H #define QCD_UTILS_WILSON_LOOPS_H
namespace Grid {
namespace QCD { NAMESPACE_BEGIN(Grid);
// Common wilson loop observables // Common wilson loop observables
template <class Gimpl> class WilsonLoops : public Gimpl { template <class Gimpl> class WilsonLoops : public Gimpl {
@ -189,8 +189,8 @@ public:
} }
// For the force term // For the force term
static void StapleMult(GaugeMat &staple, const GaugeLorentz &Umu, int mu) { static void StapleMult(GaugeMat &staple, const GaugeLorentz &Umu, int mu) {
GridBase *grid = Umu._grid; GridBase *grid = Umu._grid;
std::vector<GaugeMat> U(Nd, grid); std::vector<GaugeMat> U(Nd, grid);
for (int d = 0; d < Nd; d++) { for (int d = 0; d < Nd; d++) {
@ -212,7 +212,7 @@ static void StapleMult(GaugeMat &staple, const GaugeLorentz &Umu, int mu) {
} }
} }
staple = U[mu]*staple; staple = U[mu]*staple;
} }
////////////////////////////////////////////////// //////////////////////////////////////////////////
// the sum over all staples on each site // the sum over all staples on each site
@ -623,7 +623,7 @@ typedef WilsonLoops<PeriodicGimplR> ColourWilsonLoops;
typedef WilsonLoops<PeriodicGimplR> U1WilsonLoops; typedef WilsonLoops<PeriodicGimplR> U1WilsonLoops;
typedef WilsonLoops<PeriodicGimplR> SU2WilsonLoops; typedef WilsonLoops<PeriodicGimplR> SU2WilsonLoops;
typedef WilsonLoops<PeriodicGimplR> SU3WilsonLoops; typedef WilsonLoops<PeriodicGimplR> SU3WilsonLoops;
}
} NAMESPACE_END(Grid);
#endif #endif