CHROMA
simple_fermstate_s.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Simple ferm state and a creator
3  */
4 
10 
11 namespace Chroma
12 {
13 
14  namespace StaggeredCreateSimpleFermStateEnv
15  {
16  CreateFermState<LatticeStaggeredFermion,
17  multi1d<LatticeColorMatrix>,
18  multi1d<LatticeColorMatrix> >* createStag(XMLReader& xml,
19  const std::string& path)
20  {
21  return new CreateSimpleFermState<LatticeStaggeredFermion,
22  multi1d<LatticeColorMatrix>,
23  multi1d<LatticeColorMatrix> >(StaggeredTypeFermBCEnv::reader(xml,
24  path));
25  }
26 
27  const std::string name = "SIMPLE_FERM_STATE";
28 
29  //! Local registration flag
30  static bool registered = false;
31 
32  //! Register all the factories
33  bool registerAll()
34  {
35  bool success = true;
36  if (! registered)
37  {
39  registered = true;
40  }
41  return success;
42  }
43  }
44 
45 }
46 
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.
CreateFermState< LatticeStaggeredFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createStag(XMLReader &xml, const std::string &path)
static bool registered
Local registration flag.
Handle< FermBC< LatticeStaggeredFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the FermionAction readers.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Simple ferm state and a creator.
Simple ferm state and a creator.