1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 17:25:37 +01:00

Namespace

This commit is contained in:
paboyle 2018-01-14 22:15:55 +00:00
parent 9f2f294a27
commit 049b4a4631

View File

@ -1,23 +1,21 @@
/* /*
* Policy classes for the HMC * Policy classes for the HMC
* Author: Guido Cossu * Author: Guido Cossu
*/ */
#ifndef FUNDAMENTAL_H #ifndef FUNDAMENTAL_H
#define FUNDAMENTAL_H #define FUNDAMENTAL_H
NAMESPACE_BEGIN(Grid);
namespace Grid {
namespace QCD {
/* /*
* This is an helper class for the HMC * This is an helper class for the HMC
* Empty since HMC updates already the fundamental representation * Empty since HMC updates already the fundamental representation
*/ */
template <int ncolour> template <int ncolour>
class FundamentalRep { class FundamentalRep {
public: public:
static const int Dimension = ncolour; static const int Dimension = ncolour;
// 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
@ -34,25 +32,20 @@ class FundamentalRep {
}; };
template<class Field> template<class Field>
class EmptyRep { class EmptyRep {
public: public:
typedef Field LatticeField; typedef Field LatticeField;
explicit EmptyRep(GridBase* grid) {} //do nothing explicit EmptyRep(GridBase* grid) {} //do nothing
void update_representation(const LatticeField& Uin) {} // do nothing void update_representation(const LatticeField& Uin) {} // do nothing
LatticeField RtoFundamentalProject(const LatticeField& in, Real scale = 1.0) const{}// do nothing LatticeField RtoFundamentalProject(const LatticeField& in, Real scale = 1.0) const{}// do nothing
}; };
typedef FundamentalRep<Nc> FundamentalRepresentation; typedef FundamentalRep<Nc> FundamentalRepresentation;
NAMESPACE_END(Grid);
}
}
#endif #endif