CHROMA
link_smearing_aggregate.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief All link smearing applicators
3  */
4 
6 
12 
13 namespace Chroma
14 {
15 
16  // Registration aggregator
17  namespace LinkSmearingEnv
18  {
19  namespace
20  {
21  //! Local registration flag
22  bool registered = false;
23  }
24 
25  //! Register all the factories
26  bool registerAll()
27  {
28  bool success = true;
29  if (! registered)
30  {
31  // link smearing
34  success &= NoLinkSmearingEnv::registerAll();
37 
38  registered = true;
39  }
40  return success;
41  }
42 
43 
44  // Returns a no-smearing group
46  {
47  GroupXML_t nope;
48 
49  XMLBufferWriter xml_tmp;
51  write(xml_tmp, "LinkSmearing", non);
52  nope.xml = xml_tmp.printCurrentContext();
54  nope.path = "/LinkSmearing";
55 
56  return nope;
57  }
58 
59  }
60 
61 }
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
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.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Hold group xml and type id.
Params for No link smearing.