CHROMA
simple_fermbc_w.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Simple fermionic BC
3  */
4 
7 
8 namespace Chroma
9 {
10 
11  //! Name and registration
12  namespace WilsonTypeSimpleFermBCEnv
13  {
14  //! Callback function
15  // Floating
16  FermBC<LatticeFermion,
17  multi1d<LatticeColorMatrix>,
18  multi1d<LatticeColorMatrix> >* createFermBC(XMLReader& xml_in,
19  const std::string& path)
20  {
21  return new SimpleFermBC<LatticeFermion,
22  multi1d<LatticeColorMatrix>,
23  multi1d<LatticeColorMatrix> >(SimpleFermBCParams(xml_in, path));
24  }
25 
26  FermBC<LatticeFermionF,
27  multi1d<LatticeColorMatrixF>,
28  multi1d<LatticeColorMatrixF> >* createFermBCF(XMLReader& xml_in,
29  const std::string& path)
30  {
31  return new SimpleFermBC<LatticeFermionF,
32  multi1d<LatticeColorMatrixF>,
33  multi1d<LatticeColorMatrixF> >(SimpleFermBCParams(xml_in, path));
34  }
35 
36  FermBC<LatticeFermionD,
37  multi1d<LatticeColorMatrixD>,
38  multi1d<LatticeColorMatrixD> >* createFermBCD(XMLReader& xml_in,
39  const std::string& path)
40  {
41  return new SimpleFermBC<LatticeFermionD,
42  multi1d<LatticeColorMatrixD>,
43  multi1d<LatticeColorMatrixD> >(SimpleFermBCParams(xml_in, path));
44  }
45 
46 
47  //! Name to be used
48  const std::string name = "SIMPLE_FERMBC";
49 
50  static bool registered = false;
51 
52  //! Register all objects
53  bool registerAll()
54  {
55  bool success = true;
56  if (! registered)
57  {
59 
61 
63 
64  registered = true;
65  }
66  return success;
67  }
68  }
69 
70 }
Base class for all fermion action boundary conditions.
Definition: fermbc.h:20
Concrete class for all gauge actions with simple boundary conditions.
Definition: simple_fermbc.h:42
static T & Instance()
Definition: singleton.h:432
Fermion Boundary Condition factories.
const std::string name
Name to be used.
FermBC< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFermBC(XMLReader &xml_in, const std::string &path)
Callback function.
FermBC< LatticeFermionD, multi1d< LatticeColorMatrixD >, multi1d< LatticeColorMatrixD > > * createFermBCD(XMLReader &xml_in, const std::string &path)
bool registerAll()
Register all objects.
FermBC< LatticeFermionF, multi1d< LatticeColorMatrixF >, multi1d< LatticeColorMatrixF > > * createFermBCF(XMLReader &xml_in, const std::string &path)
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Simple fermionic BC.
Params for simple fermbc.
Definition: simple_fermbc.h:20