CHROMA
schr_dirich_gaugebc.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Schroedinger BC - dirichlet BC
3  */
4 
7 
8 namespace Chroma
9 {
10 
11  namespace SchrDirichletGaugeBCEnv
12  {
13  //! Callback function to register with the factory
14  GaugeBC< multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> >* createGaugeBC(XMLReader& xml,
15  const std::string& path)
16  {
17  return new SchrDirichletGaugeBC(SchrGaugeBCParams(xml, path));
18  }
19 
20  const std::string name = "SCHROEDINGER_DIRICHLET_GAUGEBC";
21 
22  //! Local registration flag
23  static bool registered = false;
24 
25  //! Register all the factories
26  bool registerAll()
27  {
28  bool success = true;
29  if (! registered)
30  {
31  success &= TheGaugeBCFactory::Instance().registerObject(name, createGaugeBC);
32  registered = true;
33  }
34  return success;
35  }
36  }
37 
38 
39  // Only full constructor
41  param(p)
42  {
43  // Initialize the phases
44  initPhases();
45 
46  // Initialize the boundary fields
47  initBnd(fld, mask);
48  }
49 
50 
51  // Initialize the phases
53  {
54  phases.lower.resize(Nc);
55  phases.upper.resize(Nc);
56 
59  }
60 
61 
62 }
Base class for all gauge action boundary conditions.
Definition: gaugebc.h:30
Concrete class for Schroedinger BC - use for nonpertubative tuning.
void initPhases()
Initialize the phases.
multi1d< LatticeBoolean > mask
multi1d< LatticeColorMatrix > fld
virtual void initBnd(multi1d< LatticeColorMatrix > &SFBndFld, multi1d< LatticeBoolean > &lSFmask) const
Construct the mask and boundary fields.
static T & Instance()
Definition: singleton.h:432
Gauge boundary condition factories.
GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createGaugeBC(XMLReader &xml, const std::string &path)
Callback function to register with the factory.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Double zero
Definition: invbicg.cc:106
::std::string string
Definition: gtest.h:1979
Schroedinger BC - dirichlet BC.