CHROMA
periodic_fermstate_s.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Periodic ferm state and a creator
3  */
4 
9 
10 namespace Chroma
11 {
12 
13  namespace StaggeredCreatePeriodicFermStateEnv
14  {
15  CreateFermState<LatticeStaggeredFermion,
16  multi1d<LatticeColorMatrix>,
17  multi1d<LatticeColorMatrix> >* createStag(XMLReader& xml,
18  const std::string& path)
19  {
20  return new CreatePeriodicFermState<LatticeStaggeredFermion,
21  multi1d<LatticeColorMatrix>,
22  multi1d<LatticeColorMatrix> >();
23  }
24 
25  const std::string name = "PERIODIC_FERM_STATE";
26 
27  //! Local registration flag
28  static bool registered = false;
29 
30  //! Register all the factories
31  bool registerAll()
32  {
33  bool success = true;
34  if (! registered)
35  {
37  registered = true;
38  }
39  return success;
40  }
41  }
42 
43 }
44 
Create a fermion connection state.
Definition: create_state.h:69
Create a simple ferm connection state.
static T & Instance()
Definition: singleton.h:432
All ferm create-state method.
Fermion create state factory.
Fermionic boundary condition reader.
static bool registered
Local registration flag.
CreateFermState< LatticeStaggeredFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createStag(XMLReader &xml, const std::string &path)
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Periodic ferm state and a creator.