mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
1d0be956ae
for Cayley, Partial and Cont fraction dwf and overlap. have even odd and unprec forces.
70 lines
2.5 KiB
C++
70 lines
2.5 KiB
C++
#ifndef GRID_QCD_PARTIAL_FRACTION_H
|
|
#define GRID_QCD_PARTIAL_FRACTION_H
|
|
|
|
namespace Grid {
|
|
|
|
namespace QCD {
|
|
|
|
class PartialFractionFermion5D : public WilsonFermion5D
|
|
{
|
|
public:
|
|
|
|
const int part_frac_chroma_convention=1;
|
|
|
|
void Meooe_internal(const LatticeFermion &in, LatticeFermion &out,int dag);
|
|
void Mooee_internal(const LatticeFermion &in, LatticeFermion &out,int dag);
|
|
void MooeeInv_internal(const LatticeFermion &in, LatticeFermion &out,int dag);
|
|
void M_internal(const LatticeFermion &in, LatticeFermion &out,int dag);
|
|
|
|
// override multiply
|
|
virtual RealD M (const LatticeFermion &in, LatticeFermion &out);
|
|
virtual RealD Mdag (const LatticeFermion &in, LatticeFermion &out);
|
|
|
|
// half checkerboard operaions
|
|
virtual void Meooe (const LatticeFermion &in, LatticeFermion &out);
|
|
virtual void MeooeDag (const LatticeFermion &in, LatticeFermion &out);
|
|
virtual void Mooee (const LatticeFermion &in, LatticeFermion &out);
|
|
virtual void MooeeDag (const LatticeFermion &in, LatticeFermion &out);
|
|
virtual void MooeeInv (const LatticeFermion &in, LatticeFermion &out);
|
|
virtual void MooeeInvDag (const LatticeFermion &in, LatticeFermion &out);
|
|
|
|
// force terms; five routines; default to Dhop on diagonal
|
|
virtual void MDeriv (LatticeGaugeField &mat,const LatticeFermion &U,const LatticeFermion &V,int dag);
|
|
virtual void MoeDeriv(LatticeGaugeField &mat,const LatticeFermion &U,const LatticeFermion &V,int dag);
|
|
virtual void MeoDeriv(LatticeGaugeField &mat,const LatticeFermion &U,const LatticeFermion &V,int dag);
|
|
|
|
virtual void Instantiatable(void) =0; // ensure no make-eee
|
|
|
|
// Efficient support for multigrid coarsening
|
|
virtual void Mdir (const LatticeFermion &in, LatticeFermion &out,int dir,int disp);
|
|
|
|
// Constructors
|
|
PartialFractionFermion5D(LatticeGaugeField &_Umu,
|
|
GridCartesian &FiveDimGrid,
|
|
GridRedBlackCartesian &FiveDimRedBlackGrid,
|
|
GridCartesian &FourDimGrid,
|
|
GridRedBlackCartesian &FourDimRedBlackGrid,
|
|
RealD _mass,RealD M5);
|
|
|
|
protected:
|
|
|
|
virtual void SetCoefficientsTanh(Approx::zolotarev_data *zdata,RealD scale);
|
|
virtual void SetCoefficientsZolotarev(RealD zolo_hi,Approx::zolotarev_data *zdata);
|
|
|
|
// Part frac
|
|
RealD mass;
|
|
RealD dw_diag;
|
|
RealD R;
|
|
RealD amax;
|
|
RealD scale;
|
|
std::vector<double> p;
|
|
std::vector<double> q;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|