CHROMA
periodic_fermbc_w.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Periodic fermionic BC
3  */
4 
7 
8 namespace Chroma
9 {
10 
11  //! Name and registration
12  namespace WilsonTypePeriodicFermBCEnv
13  {
14  //! Callback function
15  FermBC<LatticeFermion,
16  multi1d<LatticeColorMatrix>,
17  multi1d<LatticeColorMatrix> >* createFermBC(XMLReader& xml_in,
18  const std::string& path)
19  {
20  return new PeriodicFermBC<LatticeFermion,
21  multi1d<LatticeColorMatrix>,
22  multi1d<LatticeColorMatrix> >();
23  }
24 
25  //! Name to be used
26  const std::string name = "PERIODIC_FERMBC";
27 
28  //! Local registration flag
29  static bool registered = false;
30 
31  //! Register all the factories
32  bool registerAll()
33  {
34  bool success = true;
35  if (! registered)
36  {
38  registered = true;
39  }
40  return success;
41  }
42  }
43 
44 }
Base class for all fermion action boundary conditions.
Definition: fermbc.h:20
Concrete class for all fermionic actions with trivial boundary conditions.
static T & Instance()
Definition: singleton.h:432
Fermion Boundary Condition factories.
const std::string name
Name to be used.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
FermBC< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFermBC(XMLReader &xml_in, const std::string &path)
Callback function.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Periodic fermionic BC.