2015-06-04 13:28:37 +01:00
|
|
|
#ifndef OVERLAP_WILSON_PARTFRAC_TANH_FERMION_H
|
|
|
|
#define OVERLAP_WILSON_PARTFRAC_TANH_FERMION_H
|
|
|
|
|
|
|
|
#include <Grid.h>
|
|
|
|
|
|
|
|
namespace Grid {
|
|
|
|
|
|
|
|
namespace QCD {
|
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
template<class Impl>
|
|
|
|
class OverlapWilsonPartialFractionTanhFermion : public PartialFractionFermion5D<Impl>
|
2015-06-04 13:28:37 +01:00
|
|
|
{
|
|
|
|
public:
|
2015-08-15 23:25:49 +01:00
|
|
|
INHERIT_IMPL_TYPES(Impl);
|
2015-08-10 20:47:44 +01:00
|
|
|
public:
|
2015-06-04 13:28:37 +01:00
|
|
|
|
|
|
|
virtual void Instantiatable(void){};
|
|
|
|
// Constructors
|
2015-08-10 20:47:44 +01:00
|
|
|
OverlapWilsonPartialFractionTanhFermion(GaugeField &_Umu,
|
2015-06-04 13:28:37 +01:00
|
|
|
GridCartesian &FiveDimGrid,
|
|
|
|
GridRedBlackCartesian &FiveDimRedBlackGrid,
|
|
|
|
GridCartesian &FourDimGrid,
|
|
|
|
GridRedBlackCartesian &FourDimRedBlackGrid,
|
|
|
|
RealD _mass,RealD _M5,
|
2015-08-15 23:25:49 +01:00
|
|
|
RealD scale,const ImplParams &p= ImplParams()) :
|
2015-06-04 13:28:37 +01:00
|
|
|
|
|
|
|
// b+c=scale, b-c = 0 <=> b =c = scale/2
|
2015-08-10 20:47:44 +01:00
|
|
|
PartialFractionFermion5D<Impl>(_Umu,
|
|
|
|
FiveDimGrid,
|
|
|
|
FiveDimRedBlackGrid,
|
|
|
|
FourDimGrid,
|
2015-08-15 23:25:49 +01:00
|
|
|
FourDimRedBlackGrid,_mass,_M5,p)
|
2015-06-04 13:28:37 +01:00
|
|
|
{
|
2015-08-10 20:47:44 +01:00
|
|
|
assert((this->Ls&0x1)==1); // Odd Ls required
|
|
|
|
int nrational=this->Ls-1;// Even rational order
|
2015-06-04 13:28:37 +01:00
|
|
|
Approx::zolotarev_data *zdata = Approx::higham(1.0,nrational);// eps is ignored for higham
|
2015-08-10 20:47:44 +01:00
|
|
|
this->SetCoefficientsTanh(zdata,scale);
|
2015-06-04 13:28:37 +01:00
|
|
|
Approx::zolotarev_free(zdata);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|