36 namespace PointQuarkSourceSmearingEnv
43 const multi1d<LatticeColorMatrix>&
u)
51 const multi1d<LatticeColorMatrix>&
u)
59 const multi1d<LatticeColorMatrix>&
u)
100 XMLReader paramtop(xml, path);
103 read(paramtop,
"version", version);
113 XMLBufferWriter xml_tmp;
114 push(xml_tmp,
"Displacement");
117 if (paramtop.count(
"disp_length") != 0)
118 read(paramtop,
"disp_length", disp_length);
120 if (paramtop.count(
"disp_dir") != 0)
121 read(paramtop,
"disp_dir", disp_dir);
123 write(xml_tmp,
"disp_length", disp_length);
124 write(xml_tmp,
"disp_dir", disp_dir);
134 if (paramtop.count(
"Displacement") != 0)
142 QDPIO::cerr << __func__ <<
": parameter version " << version
143 <<
" unsupported." << std::endl;
149 if (paramtop.count(
"LinkSmearing") != 0)
162 write(xml,
"version", version);
189 XMLReader displacetop(xml_d);
200 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
205 QDPIO::cerr <<
name <<
": Caught Exception smearing: " << e << std::endl;
228 XMLReader displacetop(xml_d);
239 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
244 QDPIO::cerr <<
name <<
": Caught Exception smearing: " << e << std::endl;
267 XMLReader displacetop(xml_d);
278 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
283 QDPIO::cerr <<
name <<
": Caught Exception smearing: " << e << std::endl;
Primary include file for CHROMA library code.
Class for counted reference semantics.
void operator()(T &obj) const
Construct the source.
Base class for quark source and sink smearing.
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.
Class for counted reference semantics.
All link smearing constructors.
Factory for producing link smearing objects.
static bool registered
Local registration flag.
const std::string name
Name to be used.
CreateFermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFerm(XMLReader &xml, const std::string &path)
GroupXML_t nullXMLGroup()
Returns a no-linksmearing group.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
std::string getName()
Return the name.
bool registerAll()
Register all the factories.
GroupXML_t nullXMLGroup()
Returns a no-displacement group.
std::string getName()
Return the name.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
Point source construction.
All quark displacement constructors.
Factory for producing quark displacement objects.
Simple quark displacement.
Factory for producing quark smearing objects.
void writeXML(XMLWriter &in, const std::string &path) const
GroupXML_t quark_displacement