CHROMA
periodic_fermstate_w.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  /*! \ingroup fermstates */
14  namespace CreatePeriodicFermStateEnv
15  {
16  CreateFermState<LatticeFermion,
17  multi1d<LatticeColorMatrix>,
18  multi1d<LatticeColorMatrix> >* createFerm(XMLReader& xml,
19  const std::string& path)
20  {
21  return new CreatePeriodicFermState<LatticeFermion,
22  multi1d<LatticeColorMatrix>,
23  multi1d<LatticeColorMatrix> >();
24  }
25 
26  const std::string name = "PERIODIC_FERM_STATE";
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  {
37  success &= Chroma::TheCreateFermStateFactory::Instance().registerObject(name, createFerm);
38  registered = true;
39  }
40  return success;
41  }
42  }
43 
44 }
45 
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.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
CreateFermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFerm(XMLReader &xml, const std::string &path)
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Periodic ferm state and a creator.