1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-14 01:35:36 +00:00

Unified spfundamental.h with fundamental.h

This commit is contained in:
Julian Lenz 2023-05-18 18:09:38 +01:00
parent d169c275b6
commit e855c41772
4 changed files with 4 additions and 47 deletions

View File

@ -4,7 +4,6 @@
#include <Grid/qcd/representations/adjoint.h> #include <Grid/qcd/representations/adjoint.h>
#include <Grid/qcd/representations/two_index.h> #include <Grid/qcd/representations/two_index.h>
#include <Grid/qcd/representations/fundamental.h> #include <Grid/qcd/representations/fundamental.h>
#include <Grid/qcd/representations/spfundamental.h>
#include <Grid/qcd/representations/sp_two_index.h> #include <Grid/qcd/representations/sp_two_index.h>
#include <Grid/qcd/representations/hmc_types.h> #include <Grid/qcd/representations/hmc_types.h>

View File

@ -13,7 +13,7 @@ NAMESPACE_BEGIN(Grid);
* Empty since HMC updates already the fundamental representation * Empty since HMC updates already the fundamental representation
*/ */
template <int ncolour> template <int ncolour, class group_name>
class FundamentalRep { class FundamentalRep {
public: public:
static const int Dimension = ncolour; static const int Dimension = ncolour;
@ -21,7 +21,7 @@ public:
// typdef to be used by the Representations class in HMC to get the // typdef to be used by the Representations class in HMC to get the
// types for the higher representation fields // types for the higher representation fields
typedef typename SU<ncolour>::LatticeMatrix LatticeMatrix; typedef typename GaugeGroup<ncolour,group_name>::LatticeMatrix LatticeMatrix;
typedef LatticeGaugeField LatticeField; typedef LatticeGaugeField LatticeField;
explicit FundamentalRep(GridBase* grid) {} //do nothing explicit FundamentalRep(GridBase* grid) {} //do nothing
@ -45,7 +45,8 @@ public:
typedef FundamentalRep<Nc> FundamentalRepresentation; typedef FundamentalRep<Nc,GroupName::SU> FundamentalRepresentation;
typedef FundamentalRep<Nc,GroupName::Sp> SpFundamentalRepresentation;
NAMESPACE_END(Grid); NAMESPACE_END(Grid);

View File

@ -4,7 +4,6 @@
#include <Grid/qcd/representations/adjoint.h> #include <Grid/qcd/representations/adjoint.h>
#include <Grid/qcd/representations/two_index.h> #include <Grid/qcd/representations/two_index.h>
#include <Grid/qcd/representations/fundamental.h> #include <Grid/qcd/representations/fundamental.h>
#include <Grid/qcd/representations/spfundamental.h>
#include <Grid/qcd/representations/sp_two_index.h> #include <Grid/qcd/representations/sp_two_index.h>
#include <Grid/qcd/action/scalar/ScalarImpl.h> #include <Grid/qcd/action/scalar/ScalarImpl.h>

View File

@ -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 <int ncolour>
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<ncolour>::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<Nc> SpFundamentalRepresentation;
NAMESPACE_END(Grid);
#endif