21 namespace SFWallQuarkSourceConstEnv
68 XMLReader paramtop(xml, path);
71 read(paramtop,
"version", version);
79 QDPIO::cerr << __func__ <<
": parameter version " << version
80 <<
" unsupported." << std::endl;
91 if (j_decay < 0 || j_decay >=
Nd)
93 QDPIO::cerr <<
name <<
": invalid j_decay=" <<
j_decay << std::endl;
105 write(xml,
"version", version);
120 QDPIO::cout <<
"SF Wall source" << std::endl;
123 LatticePropagator quark_source;
127 SpinMatrix g_one = 1.0;
128 SpinMatrix P_plus = 0.5*(g_one + (Gamma(jd) * g_one));
129 SpinMatrix P_minus = 0.5*(g_one - (Gamma(jd) * g_one));
137 XMLReader fermbctop(xml_s);
141 multi1d<LatticeColorMatrix>,
142 multi1d<LatticeColorMatrix> > >
157 QDPIO::cerr <<
name <<
": time slice source location does not agree with this FermBC" << std::endl;
163 for(
int color_source = 0; color_source < Nc; ++color_source)
165 for(
int spin_source = 0; spin_source < Ns; ++spin_source)
172 color_source, spin_source);
186 QDPIO::cerr <<
name <<
": illegal direction" << std::endl;
196 QDPIO::cerr <<
name <<
": caught dynamic cast error" << std::endl;
201 QDPIO::cerr <<
name <<
": Caught Exception in applying source or creating fermbc: " << e << std::endl;
Primary include file for CHROMA library code.
Base class for all fermion action boundary conditions.
Class for counted reference semantics.
Base class for quark source construction.
Wall source construction for Schroedinger Functional.
T operator()(const multi1d< LatticeColorMatrix > &u) const
Construct the source.
Abstract class for all gauge action boundary conditions with Schroedinger BC.
virtual int getDecayMin() const =0
Starting slice in decay direction.
virtual int getDecayMax() const =0
Ending slice in decay direction.
Fermion action boundary conditions.
Fermion Boundary Condition factories.
All Wilson-type fermion boundary conditions.
void FermToProp(const LatticeFermionF &a, LatticePropagatorF &b, int color_index, int spin_index)
Insert a LatticeFermion into a LatticePropagator.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
void walfil(LatticeStaggeredFermion &a, int slice, int mu, int color_index, int src_index)
Fill a specific color and spin index with 1.0 on a wall.
Class for counted reference semantics.
static bool registered
Local registration flag.
const std::string name
Name to be used.
bool registerAll()
Register all the factories.
std::string getName()
Return the name.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
multi1d< LatticeFermion > chi(Ncb)
Fermion action boundary conditions.
Wall source construction fpr Schroedinger Functional.
Factory for producing quark prop sources.
void writeXML(XMLWriter &in, const std::string &path) const
Wall source construction.