1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-28 14:45:56 +01:00

Namespace

This commit is contained in:
paboyle 2018-01-14 22:58:42 +00:00
parent 634943c11f
commit 5ab9129db3

View File

@ -1,4 +1,4 @@
/************************************************************************************* /*************************************************************************************
Grid physics library, www.github.com/paboyle/Grid Grid physics library, www.github.com/paboyle/Grid
@ -23,15 +23,14 @@ 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,
@ -56,24 +55,24 @@ namespace QCD {
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> template<class Impl>
void WilsonTMFermion<Impl>::Mooee(const FermionField &in, FermionField &out) { void WilsonTMFermion<Impl>::Mooee(const FermionField &in, FermionField &out) {
RealD a = 4.0+this->mass; RealD a = 4.0+this->mass;
RealD b = this->mu; RealD b = this->mu;
out.checkerboard = in.checkerboard; out.checkerboard = in.checkerboard;
axpibg5x(out,in,a,b); axpibg5x(out,in,a,b);
} }
template<class Impl> template<class Impl>
void WilsonTMFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out) { void WilsonTMFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out) {
RealD a = 4.0+this->mass; RealD a = 4.0+this->mass;
RealD b = -this->mu; RealD b = -this->mu;
out.checkerboard = in.checkerboard; out.checkerboard = in.checkerboard;
axpibg5x(out,in,a,b); axpibg5x(out,in,a,b);
} }
template<class Impl> template<class Impl>
void WilsonTMFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out) { void WilsonTMFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out) {
RealD m = this->mass; RealD m = this->mass;
RealD tm = this->mu; RealD tm = this->mu;
RealD mtil = 4.0+this->mass; RealD mtil = 4.0+this->mass;
@ -81,9 +80,9 @@ namespace QCD {
RealD a = mtil/sq; RealD a = mtil/sq;
RealD b = -tm /sq; RealD b = -tm /sq;
axpibg5x(out,in,a,b); axpibg5x(out,in,a,b);
} }
template<class Impl> template<class Impl>
void WilsonTMFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out) { void WilsonTMFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out) {
RealD m = this->mass; RealD m = this->mass;
RealD tm = this->mu; RealD tm = this->mu;
RealD mtil = 4.0+this->mass; RealD mtil = 4.0+this->mass;
@ -91,9 +90,8 @@ namespace QCD {
RealD a = mtil/sq; RealD a = mtil/sq;
RealD b = tm /sq; RealD b = tm /sq;
axpibg5x(out,in,a,b); axpibg5x(out,in,a,b);
}
FermOpTemplateInstantiate(WilsonTMFermion);
}
} }
FermOpTemplateInstantiate(WilsonTMFermion);
NAMESPACE_END(Grid);