CHROMA
disordered_gauge_init.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Create a disordered config
4  */
5 
6 #ifndef __disordered_gauge_init_h__
7 #define __disordered_gauge_init_h__
8 
10 
11 namespace Chroma
12 {
13 
14  //! Name and registration
15  namespace DisorderedGaugeInitEnv
16  {
17  extern const std::string name;
18  bool registerAll();
19 
20 
21  //! Params for initializing config
22  /*! @ingroup gauge */
23  struct Params
24  {
25  Params() {}
26  Params(XMLReader& in, const std::string& path);
27  void writeXML(XMLWriter& in, const std::string& path) const;
28  };
29 
30 
31 
32  //! Gauge initialization
33  /*! @ingroup gauge
34  *
35  * Disordered reader
36  */
37  class GaugeIniter : public GaugeInit
38  {
39  public:
40  //! Full constructor
41  GaugeIniter(const Params& p) : params(p) {}
42 
43  //! Initialize the gauge field
44  void operator()(XMLReader& gauge_file_xml,
45  XMLReader& gauge_xml,
46  multi1d<LatticeColorMatrix>& u) const;
47 
48  private:
49  //! Hide partial constructor
51 
52  private:
54  };
55 
56  } // end namespace
57 
58 } // end namespace Chroma
59 
60 
61 #endif
GaugeIniter(const Params &p)
Full constructor.
void operator()(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u) const
Initialize the gauge field.
Base class for gauge initialization.
Definition: gauge_init.h:19
Gauge initialization.
bool registerAll()
Register all the factories.
const std::string name
Name to be used.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
static QDP_ColorVector * in
::std::string string
Definition: gtest.h:1979
Params for initializing config.
void writeXML(XMLWriter &in, const std::string &path) const
Parameters for running code.