2015-05-31 15:09:02 +01:00
|
|
|
#ifndef GRID_QCD_DHOP_H
|
|
|
|
#define GRID_QCD_DHOP_H
|
|
|
|
|
|
|
|
namespace Grid {
|
|
|
|
|
|
|
|
namespace QCD {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Helper classes that implement Wilson stencil for a single site.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generic version works for any Nc and with extra flavour indices
|
2015-06-30 15:03:11 +01:00
|
|
|
// namespace DiracOpt {
|
|
|
|
|
2015-05-31 15:09:02 +01:00
|
|
|
// These ones will need to be package intelligently. WilsonType base class
|
|
|
|
// for use by DWF etc..
|
2015-06-30 15:03:11 +01:00
|
|
|
void DiracOptDhopSite(CartesianStencil &st,LatticeDoubledGaugeField &U,
|
|
|
|
std::vector<vHalfSpinColourVector,alignedAllocator<vHalfSpinColourVector> > &buf,
|
|
|
|
int sF,int sU,const LatticeFermion &in, LatticeFermion &out);
|
|
|
|
void DiracOptDhopSiteDag(CartesianStencil &st,LatticeDoubledGaugeField &U,
|
|
|
|
std::vector<vHalfSpinColourVector,alignedAllocator<vHalfSpinColourVector> > &buf,
|
|
|
|
int sF,int sU,const LatticeFermion &in, LatticeFermion &out);
|
|
|
|
void DiracOptDhopDir(CartesianStencil &st,LatticeDoubledGaugeField &U,
|
2015-06-08 12:04:59 +01:00
|
|
|
std::vector<vHalfSpinColourVector,alignedAllocator<vHalfSpinColourVector> > &buf,
|
2015-07-26 02:54:38 +01:00
|
|
|
int sF,int sU,const LatticeFermion &in, LatticeFermion &out,int dirdisp,int gamma);
|
2015-06-30 15:03:11 +01:00
|
|
|
|
|
|
|
// };
|
2015-05-31 15:09:02 +01:00
|
|
|
|
2015-06-30 15:03:11 +01:00
|
|
|
// Hand unrolled for Nc=3, one flavour
|
|
|
|
// namespace DiracOptHand {
|
2015-05-31 15:09:02 +01:00
|
|
|
// These ones will need to be package intelligently. WilsonType base class
|
|
|
|
// for use by DWF etc..
|
|
|
|
|
2015-06-30 15:03:11 +01:00
|
|
|
void DiracOptHandDhopSite(CartesianStencil &st,LatticeDoubledGaugeField &U,
|
|
|
|
std::vector<vHalfSpinColourVector,alignedAllocator<vHalfSpinColourVector> > &buf,
|
|
|
|
int sF,int sU,const LatticeFermion &in, LatticeFermion &out);
|
|
|
|
void DiracOptHandDhopSiteDag(CartesianStencil &st,LatticeDoubledGaugeField &U,
|
|
|
|
std::vector<vHalfSpinColourVector,alignedAllocator<vHalfSpinColourVector> > &buf,
|
|
|
|
int sF,int sU,const LatticeFermion &in, LatticeFermion &out);
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
void DiracOptHandDhopSiteDag(CartesianStencil &st,LatticeDoubledGaugeField &U,
|
|
|
|
std::vector<vHalfSpinColourVector,alignedAllocator<vHalfSpinColourVector> > &buf,
|
|
|
|
int sF,int sU,const LatticeFermion &in, LatticeFermion &out);
|
2015-05-31 15:09:02 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|