42 namespace ShellQuarkSourceSmearingEnv
49 const multi1d<LatticeColorMatrix>&
u)
57 const multi1d<LatticeColorMatrix>&
u)
65 const multi1d<LatticeColorMatrix>&
u)
108 XMLReader paramtop(xml, path);
111 read(paramtop,
"version", version);
123 XMLBufferWriter xml_tmp;
124 push(xml_tmp,
"Displacement");
127 if (paramtop.count(
"disp_length") != 0)
128 read(paramtop,
"disp_length", disp_length);
130 if (paramtop.count(
"disp_dir") != 0)
131 read(paramtop,
"disp_dir", disp_dir);
133 write(xml_tmp,
"disp_length", disp_length);
134 write(xml_tmp,
"disp_dir", disp_dir);
144 if (paramtop.count(
"Displacement") != 0)
155 if (paramtop.count(
"Displacement") != 0)
163 QDPIO::cerr << __func__ <<
": parameter version " << version
164 <<
" unsupported." << std::endl;
170 if (paramtop.count(
"LinkSmearing") != 0)
212 XMLReader smeartop(xml_s);
224 XMLReader displacetop(xml_d);
238 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
241 (*quarkSmearing)(quark_source, u_smr);
246 (*quarkSmearing)(quark_source, u_smr);
251 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
256 QDPIO::cerr <<
name <<
": Caught Exception smearing: " << e << std::endl;
277 XMLReader smeartop(xml_s);
289 XMLReader displacetop(xml_d);
303 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
306 (*quarkSmearing)(quark_source, u_smr);
311 (*quarkSmearing)(quark_source, u_smr);
316 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
321 QDPIO::cerr <<
name <<
": Caught Exception smearing: " << e << std::endl;
341 XMLReader smeartop(xml_s);
353 XMLReader displacetop(xml_d);
367 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
370 (*quarkSmearing)(quark_source, u_smr);
375 (*quarkSmearing)(quark_source, u_smr);
380 (*quarkDisplacement)(quark_source, u_smr,
MINUS);
385 QDPIO::cerr <<
name <<
": Caught Exception smearing: " << e << std::endl;
Primary include file for CHROMA library code.
Class for counted reference semantics.
Base class for quark source and sink smearing.
void operator()(T &obj) const
Construct the source.
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 write(XMLWriter &xml, const std::string &path, const ShellQuarkSourceSmearingEnv::Params ¶m)
Writer.
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.
GroupXML_t nullXMLGroup()
Returns a no-displacement group.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
std::string getName()
Return the name.
std::string getName()
Return the name.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
All quark displacement constructors.
Factory for producing quark displacement objects.
All quark smearing constructors.
Factory for producing quark smearing objects.
Simple quark displacement.
Factory for producing quark prop sources.
Factory for producing quark smearing objects.
GroupXML_t quark_displacement
void writeXML(XMLWriter &in, const std::string &path) const
GroupXML_t quark_smearing