CHROMA
simple_fermstate_w.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  /*! \ingroup fermstates */
15  namespace CreateSimpleFermStateEnv
16  {
17  CreateFermState<LatticeFermion,
18  multi1d<LatticeColorMatrix>,
19  multi1d<LatticeColorMatrix> >* createFerm(XMLReader& xml,
20  const std::string& path)
21  {
22  return new CreateSimpleFermState<LatticeFermion,
23  multi1d<LatticeColorMatrix>,
24  multi1d<LatticeColorMatrix> >(WilsonTypeFermBCEnv::reader(xml,
25  path));
26  }
27 
28  const std::string name = "SIMPLE_FERM_STATE";
29 
30  //! Local registration flag
31  static bool registered = false;
32 
33  //! Register all the factories
34  bool registerAll()
35  {
36  bool success = true;
37  if (! registered)
38  {
39  success &= Chroma::TheCreateFermStateFactory::Instance().registerObject(name, createFerm);
40  registered = true;
41  }
42  return success;
43  }
44  }
45 
46 }
47 
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.
Handle< FermBC< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the FermionAction readers.
CreateFermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFerm(XMLReader &xml, const std::string &path)
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
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.