diff --git a/Grid/qcd/representations/Representations.h b/Grid/qcd/representations/Representations.h index 8791f653..85dc6596 100644 --- a/Grid/qcd/representations/Representations.h +++ b/Grid/qcd/representations/Representations.h @@ -4,7 +4,6 @@ #include #include #include -#include #include #include diff --git a/Grid/qcd/representations/fundamental.h b/Grid/qcd/representations/fundamental.h index 4d4779e1..90592abb 100644 --- a/Grid/qcd/representations/fundamental.h +++ b/Grid/qcd/representations/fundamental.h @@ -13,7 +13,7 @@ NAMESPACE_BEGIN(Grid); * Empty since HMC updates already the fundamental representation */ -template +template class FundamentalRep { public: static const int Dimension = ncolour; @@ -21,7 +21,7 @@ public: // typdef to be used by the Representations class in HMC to get the // types for the higher representation fields - typedef typename SU::LatticeMatrix LatticeMatrix; + typedef typename GaugeGroup::LatticeMatrix LatticeMatrix; typedef LatticeGaugeField LatticeField; explicit FundamentalRep(GridBase* grid) {} //do nothing @@ -45,7 +45,8 @@ public: -typedef FundamentalRep FundamentalRepresentation; +typedef FundamentalRep FundamentalRepresentation; +typedef FundamentalRep SpFundamentalRepresentation; NAMESPACE_END(Grid); diff --git a/Grid/qcd/representations/hmc_types.h b/Grid/qcd/representations/hmc_types.h index a24d5752..7ad67079 100644 --- a/Grid/qcd/representations/hmc_types.h +++ b/Grid/qcd/representations/hmc_types.h @@ -4,7 +4,6 @@ #include #include #include -#include #include #include diff --git a/Grid/qcd/representations/spfundamental.h b/Grid/qcd/representations/spfundamental.h deleted file mode 100644 index df6b6fed..00000000 --- a/Grid/qcd/representations/spfundamental.h +++ /dev/null @@ -1,42 +0,0 @@ - - -#ifndef SPFUNDAMENTAL_H -#define SPFUNDAMENTAL_H - -NAMESPACE_BEGIN(Grid); - -/* - * This is an helper class for the HMC - * Empty since HMC updates already the fundamental representation - */ - -template -class SpFundamentalRep { -public: - static const int Dimension = ncolour; - //static const int nSp = ncolour/2; - static const bool isFundamental = true; - - // typdef to be used by the Representations class in HMC to get the - // types for the higher representation fields - typedef typename Sp::LatticeMatrix LatticeMatrix; - typedef LatticeGaugeField LatticeField; - - explicit SpFundamentalRep(GridBase* grid) {} //do nothing - void update_representation(const LatticeGaugeField& Uin) {} // do nothing - - LatticeField RtoFundamentalProject(const LatticeField& in, Real scale = 1.0) const{ - return (scale * in); - } - -}; - - - - - -typedef SpFundamentalRep SpFundamentalRepresentation; - -NAMESPACE_END(Grid); - -#endif