2015-06-04 06:02:00 +01:00
|
|
|
#ifndef OVERLAP_WILSON_CONTFRAC_TANH_FERMION_H
|
|
|
|
#define OVERLAP_WILSON_CONTFRAC_TANH_FERMION_H
|
2015-06-04 00:23:16 +01:00
|
|
|
|
|
|
|
#include <Grid.h>
|
|
|
|
|
|
|
|
namespace Grid {
|
|
|
|
|
|
|
|
namespace QCD {
|
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
template<class Impl>
|
|
|
|
class OverlapWilsonContFracTanhFermion : public ContinuedFractionFermion5D<Impl>
|
2015-06-04 00:23:16 +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 00:23:16 +01:00
|
|
|
|
|
|
|
virtual void Instantiatable(void){};
|
|
|
|
// Constructors
|
2015-08-10 20:47:44 +01:00
|
|
|
OverlapWilsonContFracTanhFermion(GaugeField &_Umu,
|
2015-06-04 00:23:16 +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 00:23:16 +01:00
|
|
|
|
|
|
|
// b+c=scale, b-c = 0 <=> b =c = scale/2
|
2015-08-10 20:47:44 +01:00
|
|
|
ContinuedFractionFermion5D<Impl>(_Umu,
|
2015-08-15 23:25:49 +01:00
|
|
|
FiveDimGrid,
|
|
|
|
FiveDimRedBlackGrid,
|
|
|
|
FourDimGrid,
|
|
|
|
FourDimRedBlackGrid,_mass,_M5,p)
|
2015-06-04 00:23:16 +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);
|
2015-06-04 00:23:16 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|