CHROMA
eoprec_slic_fermact_w.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Even-odd preconditioned Clover fermion action
3  */
4 
5 #include "chromabase.h"
9 
10 //#include "actions/ferm/fermacts/fermact_factory_w.h"
11 
15 
17 
18 namespace Chroma
19 {
20 
21  //! Hooks to register the class with the fermact factory
22  namespace EvenOddPrecSLICFermActEnv
23  {
24  //! Callback function
25  WilsonTypeFermAct<LatticeFermion,
26  multi1d<LatticeColorMatrix>,
27  multi1d<LatticeColorMatrix> >* createFermAct4D(XMLReader& xml_in,
28  const std::string& path)
29  {
30  return new EvenOddPrecSLICFermAct(CreateFermStateEnv::reader(xml_in, path),
31  CloverFermActParams(xml_in, path));
32  }
33 
34  //! Callback function
35  /*! Differs in return type */
36  FermionAction<LatticeFermion,
37  multi1d<LatticeColorMatrix>,
38  multi1d<LatticeColorMatrix> >* createFermAct(XMLReader& xml_in,
39  const std::string& path)
40  {
41  return createFermAct4D(xml_in, path);
42  }
43 
44  //! Name to be used
45  const std::string name = "SLIC";
46 
47  //! Local registration flag
48  static bool registered = false;
49 
50  //! Register all the factories
51  bool registerAll()
52  {
53  bool success = true;
54  if (! registered)
55  {
57  success &= Chroma::TheFermionActionFactory::Instance().registerObject(name, createFermAct);
59  registered = true;
60  }
61  return success;
62  }
63  }
64 
65 
66  //! Produce a linear operator for this action
67  /*!
68  * The operator acts on the odd subset
69  *
70  * \param state gauge field (Read)
71  */
72  EvenOddPrecLogDetLinearOperator<LatticeFermion,
73  multi1d<LatticeColorMatrix>,
74  multi1d<LatticeColorMatrix> >*
76  {
77  return new EvenOddPrecSLICLinOp(state,param);
78  }
79 
80 }
81 
Primary include file for CHROMA library code.
Even-odd preconditioned linear operator.
Even-odd preconditioned Clover fermion action.
EvenOddPrecLogDetLinearOperator< T, P, Q > * linOp(Handle< FermState< T, P, Q > > state) const
Produce a linear operator for this action.
Even-odd preconditioned SLIC-Dirac operator.
Support class for fermion actions and linear operators.
Definition: state.h:94
Base class for quadratic matter actions (e.g., fermions)
Definition: fermact.h:53
Class for counted reference semantics.
Definition: handle.h:33
static T & Instance()
Definition: singleton.h:432
Wilson-like fermion actions.
Definition: fermact.orig.h:344
Even-odd preconditioned Clover fermion action.
Even-odd preconditioned Clover fermion linear operator.
All ferm create-state method.
All ferm create-state method.
Fermion action factories.
Fermionic boundary condition reader.
Handle< CreateFermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the CreateFermState readers.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
const std::string name
Name to be used.
WilsonTypeFermAct< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFermAct4D(XMLReader &xml_in, const std::string &path)
Callback function.
FermionAction< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFermAct(XMLReader &xml_in, const std::string &path)
Callback function.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
Definition: pbg5p_w.cc:28
::std::string string
Definition: gtest.h:1979
Stout field state for stout links and a creator.
Params for clover ferm acts.