CHROMA
hex_fermstate_w.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Connection State for Hex state (.cpp file)
4  */
5 
6 
7 
8 #include "chromabase.h"
10 #include "util/gauge/expmat.h"
11 #include "util/gauge/taproj.h"
12 
16 
17 
18 
19 namespace Chroma
20 {
21 
22  /*! \ingroup fermstates */
23  namespace CreateHexFermStateEnv
24  {
25  CreateFermState<LatticeFermion,
26  multi1d<LatticeColorMatrix>,
27  multi1d<LatticeColorMatrix> >* createFerm(XMLReader& xml,
28  const std::string& path)
29  {
30  return new CreateHexFermState< LatticeFermion,
31  multi1d<LatticeColorMatrix>,
32  multi1d<LatticeColorMatrix> >(WilsonTypeFermBCEnv::reader(xml, path),
33  HexFermStateParams(xml, path));
34  }
35 
36  const std::string name = "HEX_FERM_STATE" ;
37 
38  //! Local registration flag
39  static bool registered = false;
40 
41  //! Register all the factories
42  bool registerAll()
43  {
44  bool success = true;
45  if (! registered)
46  {
47  success &= Chroma::TheCreateFermStateFactory::Instance().registerObject(name, createFerm);
48  registered = true;
49  }
50  return success;
51  }
52 
53 
54  }
55 
56 
57 
58 } // End namespace Chroma
59 
60 
Primary include file for CHROMA library code.
Create a fermion connection state.
Definition: create_state.h:69
Create a hex ferm connection state.
static T & Instance()
Definition: singleton.h:432
Exponentiate a SU(n) lie algebra element by some method,.
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.
Hex field state for stout links and a creator.
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
Take the traceless antihermitian projection of a color matrix.