mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-18 07:47:06 +01:00
Hadrons: propagator type coming from the fermion implementation
This commit is contained in:
@ -50,6 +50,13 @@ using Grid::operator<<;
|
||||
|
||||
BEGIN_HADRONS_NAMESPACE
|
||||
|
||||
// type aliases
|
||||
typedef FermionOperator<FIMPL> FMat;
|
||||
typedef FIMPL::FermionField FermionField;
|
||||
typedef FIMPL::PropagatorField PropagatorField;
|
||||
typedef std::function<void(FermionField &, const FermionField &)> Solver;
|
||||
|
||||
// logger
|
||||
class HadronsLogger: public Logger
|
||||
{
|
||||
public:
|
||||
|
@ -49,8 +49,6 @@ public:
|
||||
|
||||
class ADWF: public Module<ADWFPar>
|
||||
{
|
||||
public:
|
||||
typedef FermionOperator<FIMPL> FMat;
|
||||
public:
|
||||
// constructor
|
||||
ADWF(const std::string name);
|
||||
|
@ -47,8 +47,6 @@ public:
|
||||
|
||||
class AWilson: public Module<AWilsonPar>
|
||||
{
|
||||
public:
|
||||
typedef FermionOperator<FIMPL> FMat;
|
||||
public:
|
||||
// constructor
|
||||
AWilson(const std::string name);
|
||||
|
@ -62,8 +62,8 @@ void CMeson::execute(void)
|
||||
<< std::endl;
|
||||
|
||||
XmlWriter writer(par().output);
|
||||
LatticePropagator &q1 = *env().getObject<LatticePropagator>(par().q1);
|
||||
LatticePropagator &q2 = *env().getObject<LatticePropagator>(par().q2);
|
||||
PropagatorField &q1 = *env().getObject<PropagatorField>(par().q1);
|
||||
PropagatorField &q2 = *env().getObject<PropagatorField>(par().q2);
|
||||
LatticeComplex c(env().getGrid());
|
||||
SpinMatrix g[Ns*Ns], g5;
|
||||
std::vector<TComplex> buf;
|
||||
|
@ -47,9 +47,6 @@ public:
|
||||
|
||||
class MQuark: public Module<MQuarkPar>
|
||||
{
|
||||
public:
|
||||
typedef FIMPL::FermionField FermionField;
|
||||
typedef std::function<void(FermionField &, const FermionField &)> Solver;
|
||||
public:
|
||||
// constructor
|
||||
MQuark(const std::string name);
|
||||
|
@ -47,10 +47,6 @@ public:
|
||||
|
||||
class SolRBPrecCG: public Module<SolRBPrecCGPar>
|
||||
{
|
||||
public:
|
||||
typedef FermionOperator<FIMPL> FMat;
|
||||
typedef FIMPL::FermionField FermionField;
|
||||
typedef std::function<void(FermionField &, const FermionField &)> Solver;
|
||||
public:
|
||||
// constructor
|
||||
SolRBPrecCG(const std::string name);
|
||||
|
@ -56,7 +56,7 @@ std::vector<std::string> SrcPoint::getOutput(void)
|
||||
// setup ///////////////////////////////////////////////////////////////////////
|
||||
void SrcPoint::setup(void)
|
||||
{
|
||||
env().registerLattice<LatticePropagator>(getName());
|
||||
env().registerLattice<PropagatorField>(getName());
|
||||
}
|
||||
|
||||
// execution ///////////////////////////////////////////////////////////////////
|
||||
@ -67,7 +67,7 @@ void SrcPoint::execute(void)
|
||||
|
||||
LOG(Message) << "Creating point source at position [" << par().position
|
||||
<< "]" << std::endl;
|
||||
LatticePropagator &src = *env().createLattice<LatticePropagator>(getName());
|
||||
PropagatorField &src = *env().createLattice<PropagatorField>(getName());
|
||||
id = 1.;
|
||||
src = zero;
|
||||
pokeSite(id, src, position);
|
||||
|
@ -56,7 +56,7 @@ std::vector<std::string> SrcZ2::getOutput(void)
|
||||
// setup ///////////////////////////////////////////////////////////////////////
|
||||
void SrcZ2::setup(void)
|
||||
{
|
||||
env().registerLattice<LatticePropagator>(getName());
|
||||
env().registerLattice<PropagatorField>(getName());
|
||||
}
|
||||
|
||||
// execution ///////////////////////////////////////////////////////////////////
|
||||
@ -77,7 +77,7 @@ void SrcZ2::execute(void)
|
||||
LOG(Message) << "Generating Z_2 band for " << par().tA << " <= t <= "
|
||||
<< par().tB << std::endl;
|
||||
}
|
||||
LatticePropagator &src = *env().createLattice<LatticePropagator>(getName());
|
||||
PropagatorField &src = *env().createLattice<PropagatorField>(getName());
|
||||
LatticeCoordinate(t, Tp);
|
||||
bernoulli(*env().get4dRng(), eta);
|
||||
eta = (2.*eta - shift)*(1./::sqrt(2.));
|
||||
|
Reference in New Issue
Block a user