2015-05-31 15:09:02 +01:00
|
|
|
#ifndef GRID_QCD_DHOP_H
|
|
|
|
#define GRID_QCD_DHOP_H
|
|
|
|
|
|
|
|
namespace Grid {
|
|
|
|
|
|
|
|
namespace QCD {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
2015-08-10 20:47:44 +01:00
|
|
|
// Helper routines that implement Wilson stencil for a single site.
|
2015-05-31 15:09:02 +01:00
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
2015-08-10 20:47:44 +01:00
|
|
|
|
|
|
|
template<class Impl>
|
|
|
|
class WilsonKernels {
|
|
|
|
public:
|
|
|
|
|
|
|
|
#include <qcd/action/fermion/FermionImplTypedefs.h>
|
|
|
|
|
|
|
|
public:
|
|
|
|
static void
|
|
|
|
DiracOptDhopSite(CartesianStencil &st,DoubledGaugeField &U,
|
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out);
|
2015-06-30 15:03:11 +01:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
static void
|
|
|
|
DiracOptDhopSiteDag(CartesianStencil &st,DoubledGaugeField &U,
|
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in,FermionField &out);
|
|
|
|
|
|
|
|
static void
|
|
|
|
DiracOptDhopDir(CartesianStencil &st,DoubledGaugeField &U,
|
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out,int dirdisp,int gamma);
|
|
|
|
|
|
|
|
static void
|
|
|
|
DiracOptHandDhopSite(CartesianStencil &st,DoubledGaugeField &U,
|
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out){
|
|
|
|
DiracOptDhopSite(st,U,buf,sF,sU,in,out); // will template override for Wilson Nc=3
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
DiracOptHandDhopSiteDag(CartesianStencil &st,DoubledGaugeField &U,
|
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out){
|
|
|
|
DiracOptDhopSiteDag(st,U,buf,sF,sU,in,out); // will template override for Wilson Nc=3
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
2015-05-31 15:09:02 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|