2015-05-26 19:55:18 +01:00
|
|
|
#include <Grid.h>
|
|
|
|
namespace Grid {
|
|
|
|
namespace QCD {
|
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
template<class Impl>
|
2015-11-06 11:30:17 +00:00
|
|
|
void WilsonKernels<Impl>::DiracOptDhopSite(StencilImpl &st,DoubledGaugeField &U,
|
2015-08-10 20:47:44 +01:00
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out)
|
2015-05-26 19:55:18 +01:00
|
|
|
{
|
2015-08-10 20:47:44 +01:00
|
|
|
SiteHalfSpinor tmp;
|
|
|
|
SiteHalfSpinor chi;
|
|
|
|
SiteHalfSpinor Uchi;
|
2015-08-14 00:01:04 +01:00
|
|
|
SiteSpinor result;
|
|
|
|
StencilEntry *SE;
|
|
|
|
int ptype;
|
2015-08-10 20:47:44 +01:00
|
|
|
|
|
|
|
// Xp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Xp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjXp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjXp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Xp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconXp(result,Uchi);
|
|
|
|
|
|
|
|
// Yp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Yp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjYp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjYp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Yp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconYp(result,Uchi);
|
|
|
|
|
|
|
|
// Zp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Zp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjZp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjZp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Zp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconZp(result,Uchi);
|
|
|
|
|
|
|
|
// Tp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Tp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjTp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjTp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Tp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconTp(result,Uchi);
|
|
|
|
|
|
|
|
// Xm
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Xm,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjXm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjXm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Xm,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconXm(result,Uchi);
|
2015-11-04 10:00:27 +00:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
// Ym
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Ym,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjYm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjYm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Ym,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconYm(result,Uchi);
|
|
|
|
|
|
|
|
// Zm
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Zm,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjZm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjZm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Zm,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconZm(result,Uchi);
|
|
|
|
|
|
|
|
// Tm
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Tm,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjTm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjTm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Tm,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconTm(result,Uchi);
|
|
|
|
|
2015-08-14 00:01:04 +01:00
|
|
|
vstream(out._odata[sF],result*(-0.5));
|
2015-08-10 20:47:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
template<class Impl>
|
2015-11-06 11:30:17 +00:00
|
|
|
void WilsonKernels<Impl>::DiracOptDhopSiteDag(StencilImpl &st,DoubledGaugeField &U,
|
2015-08-10 20:47:44 +01:00
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out)
|
|
|
|
{
|
|
|
|
SiteHalfSpinor tmp;
|
|
|
|
SiteHalfSpinor chi;
|
|
|
|
SiteSpinor result;
|
|
|
|
SiteHalfSpinor Uchi;
|
2015-08-14 00:01:04 +01:00
|
|
|
StencilEntry *SE;
|
|
|
|
int ptype;
|
2015-08-10 20:47:44 +01:00
|
|
|
|
|
|
|
// Xp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Xm,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjXp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjXp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Xm,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconXp(result,Uchi);
|
|
|
|
|
|
|
|
// Yp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Ym,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjYp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjYp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Ym,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconYp(result,Uchi);
|
|
|
|
|
|
|
|
// Zp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Zm,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjZp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjZp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Zm,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconZp(result,Uchi);
|
|
|
|
|
|
|
|
// Tp
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Tm,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjTp(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjTp(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Tm,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconTp(result,Uchi);
|
|
|
|
|
|
|
|
// Xm
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Xp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjXm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjXm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Xp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconXm(result,Uchi);
|
|
|
|
|
|
|
|
// Ym
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Yp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjYm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjYm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Yp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconYm(result,Uchi);
|
|
|
|
|
|
|
|
// Zm
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Zp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjZm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjZm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Zp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconZm(result,Uchi);
|
|
|
|
|
|
|
|
// Tm
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,Tp,sF);
|
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjTm(tmp,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjTm(chi,in._odata[SE->_offset]);
|
2015-08-10 20:47:44 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,Tp,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
accumReconTm(result,Uchi);
|
|
|
|
|
2015-08-14 00:01:04 +01:00
|
|
|
vstream(out._odata[sF],result*(-0.5));
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
template<class Impl>
|
2015-11-06 11:30:17 +00:00
|
|
|
void WilsonKernels<Impl>::DiracOptDhopDir(StencilImpl &st,DoubledGaugeField &U,
|
2015-08-10 20:47:44 +01:00
|
|
|
std::vector<SiteHalfSpinor,alignedAllocator<SiteHalfSpinor> > &buf,
|
|
|
|
int sF,int sU,const FermionField &in, FermionField &out,int dir,int gamma)
|
2015-05-26 19:55:18 +01:00
|
|
|
{
|
2015-08-10 20:47:44 +01:00
|
|
|
SiteHalfSpinor tmp;
|
|
|
|
SiteHalfSpinor chi;
|
|
|
|
SiteSpinor result;
|
|
|
|
SiteHalfSpinor Uchi;
|
2015-08-14 00:01:04 +01:00
|
|
|
StencilEntry *SE;
|
|
|
|
int ptype;
|
2015-08-10 20:47:44 +01:00
|
|
|
|
2015-08-14 00:01:04 +01:00
|
|
|
SE=st.GetEntry(ptype,dir,sF);
|
2015-08-10 20:47:44 +01:00
|
|
|
|
|
|
|
// Xp
|
|
|
|
if(gamma==Xp){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjXp(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjXp(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-05-26 19:55:18 +01:00
|
|
|
spReconXp(result,Uchi);
|
2015-08-10 20:47:44 +01:00
|
|
|
}
|
2015-05-26 19:55:18 +01:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
// Yp
|
|
|
|
if ( gamma==Yp ){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjYp(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjYp(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconYp(result,Uchi);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Zp
|
|
|
|
if ( gamma ==Zp ){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjZp(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjZp(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconZp(result,Uchi);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tp
|
|
|
|
if ( gamma ==Tp ){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjTp(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjTp(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconTp(result,Uchi);
|
|
|
|
}
|
2015-05-26 19:55:18 +01:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
// Xm
|
|
|
|
if ( gamma==Xm ){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjXm(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjXm(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconXm(result,Uchi);
|
|
|
|
}
|
2015-05-26 19:55:18 +01:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
// Ym
|
|
|
|
if ( gamma == Ym ){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjYm(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjYm(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconYm(result,Uchi);
|
|
|
|
}
|
2015-05-26 19:55:18 +01:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
// Zm
|
|
|
|
if ( gamma == Zm ){
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjZm(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjZm(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconZm(result,Uchi);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tm
|
|
|
|
if ( gamma==Tm ) {
|
2015-08-14 00:01:04 +01:00
|
|
|
if ( SE->_is_local && SE->_permute ) {
|
|
|
|
spProjTm(tmp,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
permute(chi,tmp,ptype);
|
2015-08-14 00:01:04 +01:00
|
|
|
} else if ( SE->_is_local ) {
|
|
|
|
spProjTm(chi,in._odata[SE->_offset]);
|
2015-05-26 19:55:18 +01:00
|
|
|
} else {
|
2015-08-14 00:01:04 +01:00
|
|
|
chi=buf[SE->_offset];
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-08-14 12:57:42 +01:00
|
|
|
Impl::multLink(Uchi,U._odata[sU],chi,dir,SE,st);
|
2015-08-10 20:47:44 +01:00
|
|
|
spReconTm(result,Uchi);
|
|
|
|
}
|
2015-05-26 19:55:18 +01:00
|
|
|
|
2015-08-14 00:01:04 +01:00
|
|
|
vstream(out._odata[sF],result*(-0.5));
|
2015-05-26 19:55:18 +01:00
|
|
|
}
|
2015-06-08 12:04:59 +01:00
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
FermOpTemplateInstantiate(WilsonKernels);
|
2015-12-07 07:04:57 +00:00
|
|
|
GparityFermOpTemplateInstantiate(WilsonKernels);
|
2015-06-08 12:04:59 +01:00
|
|
|
|
2015-05-26 19:55:18 +01:00
|
|
|
}}
|