CHROMA
stout_gaugestate.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Simple gauge state and a creator
3  */
4 
9 
10 namespace Chroma
11 {
12 
13  namespace CreateStoutGaugeStateEnv
14  {
16  multi1d<LatticeColorMatrix> >* createCreator(XMLReader& xml,
17  const std::string& path)
18  {
20  multi1d<LatticeColorMatrix> >(GaugeTypeGaugeBCEnv::reader(xml, path),
21  StoutFermStateParams(xml, path));
22  }
23 
24  const std::string name = "STOUT_GAUGE_STATE";
25 
26  //! Local registration flag
27  static bool registered = false;
28 
29  //! Register all the factories
30  bool registerAll()
31  {
32  bool success = true;
33  if (! registered)
34  {
35  success &= TheCreateGaugeStateFactory::Instance().registerObject(name, createCreator);
36  registered = true;
37  }
38  return success;
39  }
40  }
41 
42 }
43 
Create a gauge connection state.
Definition: create_state.h:47
Create a stout gauge connection state.
static T & Instance()
Definition: singleton.h:432
All gauge create-state method.
Gauge create state factory.
Gauge boundary condition aggregator.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
CreateGaugeState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createCreator(XMLReader &xml, const std::string &path)
Handle< GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the GaugeAction readers.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Stout gauge state and a creator.