22 namespace SFWaveQuarkSourceConstEnv
69 XMLReader paramtop(xml, path);
72 read(paramtop,
"version", version);
80 QDPIO::cerr << __func__ <<
": parameter version " << version
81 <<
" unsupported." << std::endl;
92 if (j_decay < 0 || j_decay >=
Nd)
94 QDPIO::cerr <<
name <<
": invalid j_decay=" <<
j_decay << std::endl;
106 write(xml,
"version", version);
122 QDPIO::cout <<
"SF Wave source" << std::endl;
125 LatticePropagator quark_source;
129 SpinMatrix g_one = 1.0;
130 SpinMatrix P_plus = 0.5*(g_one + (Gamma(jd) * g_one));
131 SpinMatrix P_minus = 0.5*(g_one - (Gamma(jd) * g_one));
139 XMLReader fermbctop(xml_s);
143 multi1d<LatticeColorMatrix>,
144 multi1d<LatticeColorMatrix> > >
159 QDPIO::cerr <<
name <<
": time slice source location does not agree with this FermBC" << std::endl;
163 LatticeComplex phase ;
165 multi1d<int> tt(
Nd); tt=0 ;
169 for(
int color_source = 0; color_source < Nc; ++color_source)
171 for(
int spin_source = 0; spin_source < Ns; ++spin_source)
178 color_source, spin_source);
193 QDPIO::cerr <<
name <<
": illegal direction" << std::endl;
203 QDPIO::cerr <<
name <<
": caught dynamic cast error" << std::endl;
208 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.
Wave 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.
LatticeComplex singlePhase(const multi1d< int > &t_srce, const multi1d< int > &sink_mom, int j_decay)
A single exp(ip.x) phase used in hadron construction.
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.
Wave source construction fpr Schroedinger Functional.
Compute a single phase factor.
Factory for producing quark prop sources.
void writeXML(XMLWriter &in, const std::string &path) const
Wall source construction.