33 XMLReader paramtop(xml, path);
35 read(paramtop,
"dir", param.
dir);
48 namespace PartialWallQuarkSourceConstEnv
93 XMLReader paramtop(xml, path);
96 read(paramtop,
"version", version);
104 QDPIO::cerr << __func__ <<
": parameter version " << version
105 <<
" unsupported." << std::endl;
121 write(xml,
"version", version);
135 QDPIO::cout <<
"Partial Wall source" << std::endl;
138 LatticeBoolean mask =
true;
144 if (dir < 0 || dir >=
Nd)
146 QDPIO::cerr <<
name <<
": invalid direction, dir=" << dir << std::endl;
150 if (coord < 0 || coord >= QDP::Layout::lattSize()[dir])
152 QDPIO::cerr <<
name <<
": invalid coordinate, coord=" <<
coord << std::endl;
156 mask &= where(Layout::latticeCoordinate(dir) ==
coord, Boolean(
true), Boolean(
false));
161 LatticePropagator quark_source =
zero;
163 for(
int color_source = 0; color_source < Nc; ++color_source)
165 for(
int spin_source = 0; spin_source < Ns; ++spin_source)
169 Complex sitecomp = cmplx(
one,0);
170 ColorVector sitecolor =
zero;
171 Fermion sitefield =
zero;
174 pokeColor(sitecolor,sitecomp,color_source),
182 LatticeFermion
chi = where(mask,
tmp, LatticeFermion(
zero));
Primary include file for CHROMA library code.
PartialWall source construction.
T operator()(const multi1d< LatticeColorMatrix > &u) const
Construct the source.
Base class for quark source construction.
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.
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)
Partial wall source construction.
Factory for producing quark prop sources.
Structure holding directions.
PartialWall source parameters.
multi1d< FixedDir_t > fixed_dirs
void writeXML(XMLWriter &in, const std::string &path) const
Wall source construction.