2015-06-05 10:02:36 +01:00
|
|
|
#ifndef QCD_WILSON_GAUGE_ACTION_H
|
|
|
|
#define QCD_WILSON_GAUGE_ACTION_H
|
|
|
|
|
2015-07-03 18:43:14 +01:00
|
|
|
namespace Grid{
|
|
|
|
namespace QCD{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Wilson Gauge Action .. should I template the Nc etc..
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
template<class GaugeField,class MatrixField>
|
|
|
|
class WilsonGaugeAction : public Action<GaugeField> {
|
|
|
|
private:
|
|
|
|
RealD beta;
|
|
|
|
public:
|
|
|
|
WilsonGaugeAction(RealD b):beta(b){};
|
|
|
|
|
2015-07-04 09:47:50 +01:00
|
|
|
virtual void init(const GaugeField &U, GridParallelRNG& pRNG) {};
|
2015-07-03 18:43:14 +01:00
|
|
|
|
|
|
|
virtual RealD S(const GaugeField &U) {
|
|
|
|
return WilsonLoops<MatrixField,GaugeField>::sumPlaquette(U);
|
|
|
|
};
|
|
|
|
virtual void deriv(const GaugeField &U,GaugeField & dSdU) {
|
|
|
|
//FIXME loop on directions
|
|
|
|
MatrixField dSdU_mu(U._grid);
|
|
|
|
WilsonLoops<MatrixField,GaugeField>::Staple(dSdU_mu,U,0);
|
|
|
|
};
|
|
|
|
virtual void staple(const GaugeField &stap,GaugeField & U) {
|
|
|
|
//FIXME loop on directions
|
|
|
|
MatrixField stap_mu(U._grid);
|
|
|
|
WilsonLoops<MatrixField,GaugeField>::Staple(stap_mu,U,0);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2015-06-05 10:02:36 +01:00
|
|
|
|
|
|
|
#endif
|