mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Namespace
This commit is contained in:
parent
9f2f294a27
commit
049b4a4631
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user