mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-27 14:15:55 +01:00
Namespace, indent
This commit is contained in:
parent
e6efc93a7c
commit
7828887604
@ -1,4 +1,4 @@
|
|||||||
/*************************************************************************************
|
/*************************************************************************************
|
||||||
|
|
||||||
Grid physics library, www.github.com/paboyle/Grid
|
Grid physics library, www.github.com/paboyle/Grid
|
||||||
|
|
||||||
@ -24,28 +24,27 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
See the full license in the file "LICENSE" in the top level distribution directory
|
See the full license in the file "LICENSE" in the top level distribution directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#ifndef QCD_PLAQ_PLUS_RECTANGLE_ACTION_H
|
#ifndef QCD_PLAQ_PLUS_RECTANGLE_ACTION_H
|
||||||
#define QCD_PLAQ_PLUS_RECTANGLE_ACTION_H
|
#define QCD_PLAQ_PLUS_RECTANGLE_ACTION_H
|
||||||
|
|
||||||
namespace Grid{
|
NAMESPACE_BEGIN(Grid);
|
||||||
namespace QCD{
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// PlaqPlusRectangleActoin
|
// PlaqPlusRectangleActoin
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
template<class Gimpl>
|
template<class Gimpl>
|
||||||
class PlaqPlusRectangleAction : public Action<typename Gimpl::GaugeField> {
|
class PlaqPlusRectangleAction : public Action<typename Gimpl::GaugeField> {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
INHERIT_GIMPL_TYPES(Gimpl);
|
INHERIT_GIMPL_TYPES(Gimpl);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RealD c_plaq;
|
RealD c_plaq;
|
||||||
RealD c_rect;
|
RealD c_rect;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaqPlusRectangleAction(RealD b,RealD c): c_plaq(b),c_rect(c){};
|
PlaqPlusRectangleAction(RealD b,RealD c): c_plaq(b),c_rect(c){};
|
||||||
|
|
||||||
virtual std::string action_name(){return "PlaqPlusRectangleAction";}
|
virtual std::string action_name(){return "PlaqPlusRectangleAction";}
|
||||||
@ -107,46 +106,45 @@ namespace Grid{
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Convenience for common physically defined cases.
|
// Convenience for common physically defined cases.
|
||||||
//
|
//
|
||||||
// RBC c1 parameterisation is not really RBC but don't have good
|
// RBC c1 parameterisation is not really RBC but don't have good
|
||||||
// reference and we are happy to change name if prior use of this plaq coeff
|
// reference and we are happy to change name if prior use of this plaq coeff
|
||||||
// parameterisation is made known to us.
|
// parameterisation is made known to us.
|
||||||
template<class Gimpl>
|
template<class Gimpl>
|
||||||
class RBCGaugeAction : public PlaqPlusRectangleAction<Gimpl> {
|
class RBCGaugeAction : public PlaqPlusRectangleAction<Gimpl> {
|
||||||
public:
|
public:
|
||||||
INHERIT_GIMPL_TYPES(Gimpl);
|
INHERIT_GIMPL_TYPES(Gimpl);
|
||||||
RBCGaugeAction(RealD beta,RealD c1) : PlaqPlusRectangleAction<Gimpl>(beta*(1.0-8.0*c1), beta*c1) {};
|
RBCGaugeAction(RealD beta,RealD c1) : PlaqPlusRectangleAction<Gimpl>(beta*(1.0-8.0*c1), beta*c1) {};
|
||||||
virtual std::string action_name(){return "RBCGaugeAction";}
|
virtual std::string action_name(){return "RBCGaugeAction";}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Gimpl>
|
template<class Gimpl>
|
||||||
class IwasakiGaugeAction : public RBCGaugeAction<Gimpl> {
|
class IwasakiGaugeAction : public RBCGaugeAction<Gimpl> {
|
||||||
public:
|
public:
|
||||||
INHERIT_GIMPL_TYPES(Gimpl);
|
INHERIT_GIMPL_TYPES(Gimpl);
|
||||||
IwasakiGaugeAction(RealD beta) : RBCGaugeAction<Gimpl>(beta,-0.331) {};
|
IwasakiGaugeAction(RealD beta) : RBCGaugeAction<Gimpl>(beta,-0.331) {};
|
||||||
virtual std::string action_name(){return "IwasakiGaugeAction";}
|
virtual std::string action_name(){return "IwasakiGaugeAction";}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Gimpl>
|
template<class Gimpl>
|
||||||
class SymanzikGaugeAction : public RBCGaugeAction<Gimpl> {
|
class SymanzikGaugeAction : public RBCGaugeAction<Gimpl> {
|
||||||
public:
|
public:
|
||||||
INHERIT_GIMPL_TYPES(Gimpl);
|
INHERIT_GIMPL_TYPES(Gimpl);
|
||||||
SymanzikGaugeAction(RealD beta) : RBCGaugeAction<Gimpl>(beta,-1.0/12.0) {};
|
SymanzikGaugeAction(RealD beta) : RBCGaugeAction<Gimpl>(beta,-1.0/12.0) {};
|
||||||
virtual std::string action_name(){return "SymanzikGaugeAction";}
|
virtual std::string action_name(){return "SymanzikGaugeAction";}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Gimpl>
|
template<class Gimpl>
|
||||||
class DBW2GaugeAction : public RBCGaugeAction<Gimpl> {
|
class DBW2GaugeAction : public RBCGaugeAction<Gimpl> {
|
||||||
public:
|
public:
|
||||||
INHERIT_GIMPL_TYPES(Gimpl);
|
INHERIT_GIMPL_TYPES(Gimpl);
|
||||||
DBW2GaugeAction(RealD beta) : RBCGaugeAction<Gimpl>(beta,-1.4067) {};
|
DBW2GaugeAction(RealD beta) : RBCGaugeAction<Gimpl>(beta,-1.4067) {};
|
||||||
virtual std::string action_name(){return "DBW2GaugeAction";}
|
virtual std::string action_name(){return "DBW2GaugeAction";}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
NAMESPACE_END(Grid);
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user