mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Namespace
This commit is contained in:
parent
634943c11f
commit
5ab9129db3
@ -1,4 +1,4 @@
|
|||||||
/*************************************************************************************
|
/*************************************************************************************
|
||||||
|
|
||||||
Grid physics library, www.github.com/paboyle/Grid
|
Grid physics library, www.github.com/paboyle/Grid
|
||||||
|
|
||||||
@ -23,77 +23,75 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
See the full license in the file "LICENSE" in the top level distribution directory
|
See the full license in the file "LICENSE" in the top level distribution directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#include <Grid/qcd/action/fermion/FermionCore.h>
|
#include <Grid/qcd/action/fermion/FermionCore.h>
|
||||||
#include <Grid/qcd/action/fermion/WilsonTMFermion.h>
|
#include <Grid/qcd/action/fermion/WilsonTMFermion.h>
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
namespace QCD {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BF sequence
|
* BF sequence
|
||||||
*
|
*
|
||||||
void bfmbase<Float>::MooeeInv(Fermion_t psi,
|
void bfmbase<Float>::MooeeInv(Fermion_t psi,
|
||||||
Fermion_t chi,
|
Fermion_t chi,
|
||||||
int dag, int cb)
|
int dag, int cb)
|
||||||
|
|
||||||
double m = this->mass;
|
double m = this->mass;
|
||||||
double tm = this->twistedmass;
|
double tm = this->twistedmass;
|
||||||
double mtil = 4.0+this->mass;
|
double mtil = 4.0+this->mass;
|
||||||
|
|
||||||
double sq = mtil*mtil + tm*tm;
|
double sq = mtil*mtil + tm*tm;
|
||||||
|
|
||||||
double a = mtil/sq;
|
double a = mtil/sq;
|
||||||
double b = -tm /sq;
|
double b = -tm /sq;
|
||||||
if(dag) b=-b;
|
if(dag) b=-b;
|
||||||
axpibg5x(chi,psi,a,b);
|
axpibg5x(chi,psi,a,b);
|
||||||
|
|
||||||
void bfmbase<Float>::Mooee(Fermion_t psi,
|
void bfmbase<Float>::Mooee(Fermion_t psi,
|
||||||
Fermion_t chi,
|
Fermion_t chi,
|
||||||
int dag,int cb)
|
int dag,int cb)
|
||||||
double a = 4.0+this->mass;
|
double a = 4.0+this->mass;
|
||||||
double b = this->twistedmass;
|
double b = this->twistedmass;
|
||||||
if(dag) b=-b;
|
if(dag) b=-b;
|
||||||
axpibg5x(chi,psi,a,b);
|
axpibg5x(chi,psi,a,b);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<class Impl>
|
|
||||||
void WilsonTMFermion<Impl>::Mooee(const FermionField &in, FermionField &out) {
|
|
||||||
RealD a = 4.0+this->mass;
|
|
||||||
RealD b = this->mu;
|
|
||||||
out.checkerboard = in.checkerboard;
|
|
||||||
axpibg5x(out,in,a,b);
|
|
||||||
}
|
|
||||||
template<class Impl>
|
|
||||||
void WilsonTMFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out) {
|
|
||||||
RealD a = 4.0+this->mass;
|
|
||||||
RealD b = -this->mu;
|
|
||||||
out.checkerboard = in.checkerboard;
|
|
||||||
axpibg5x(out,in,a,b);
|
|
||||||
}
|
|
||||||
template<class Impl>
|
|
||||||
void WilsonTMFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out) {
|
|
||||||
RealD m = this->mass;
|
|
||||||
RealD tm = this->mu;
|
|
||||||
RealD mtil = 4.0+this->mass;
|
|
||||||
RealD sq = mtil*mtil+tm*tm;
|
|
||||||
RealD a = mtil/sq;
|
|
||||||
RealD b = -tm /sq;
|
|
||||||
axpibg5x(out,in,a,b);
|
|
||||||
}
|
|
||||||
template<class Impl>
|
|
||||||
void WilsonTMFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out) {
|
|
||||||
RealD m = this->mass;
|
|
||||||
RealD tm = this->mu;
|
|
||||||
RealD mtil = 4.0+this->mass;
|
|
||||||
RealD sq = mtil*mtil+tm*tm;
|
|
||||||
RealD a = mtil/sq;
|
|
||||||
RealD b = tm /sq;
|
|
||||||
axpibg5x(out,in,a,b);
|
|
||||||
}
|
|
||||||
|
|
||||||
FermOpTemplateInstantiate(WilsonTMFermion);
|
|
||||||
|
|
||||||
|
template<class Impl>
|
||||||
|
void WilsonTMFermion<Impl>::Mooee(const FermionField &in, FermionField &out) {
|
||||||
|
RealD a = 4.0+this->mass;
|
||||||
|
RealD b = this->mu;
|
||||||
|
out.checkerboard = in.checkerboard;
|
||||||
|
axpibg5x(out,in,a,b);
|
||||||
}
|
}
|
||||||
|
template<class Impl>
|
||||||
|
void WilsonTMFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out) {
|
||||||
|
RealD a = 4.0+this->mass;
|
||||||
|
RealD b = -this->mu;
|
||||||
|
out.checkerboard = in.checkerboard;
|
||||||
|
axpibg5x(out,in,a,b);
|
||||||
}
|
}
|
||||||
|
template<class Impl>
|
||||||
|
void WilsonTMFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out) {
|
||||||
|
RealD m = this->mass;
|
||||||
|
RealD tm = this->mu;
|
||||||
|
RealD mtil = 4.0+this->mass;
|
||||||
|
RealD sq = mtil*mtil+tm*tm;
|
||||||
|
RealD a = mtil/sq;
|
||||||
|
RealD b = -tm /sq;
|
||||||
|
axpibg5x(out,in,a,b);
|
||||||
|
}
|
||||||
|
template<class Impl>
|
||||||
|
void WilsonTMFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out) {
|
||||||
|
RealD m = this->mass;
|
||||||
|
RealD tm = this->mu;
|
||||||
|
RealD mtil = 4.0+this->mass;
|
||||||
|
RealD sq = mtil*mtil+tm*tm;
|
||||||
|
RealD a = mtil/sq;
|
||||||
|
RealD b = tm /sq;
|
||||||
|
axpibg5x(out,in,a,b);
|
||||||
|
}
|
||||||
|
|
||||||
|
FermOpTemplateInstantiate(WilsonTMFermion);
|
||||||
|
|
||||||
|
NAMESPACE_END(Grid);
|
||||||
|
Loading…
Reference in New Issue
Block a user