CHROMA
eoprec_slrc_fermact_w.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Even-odd preconditioned Clover fermion action (fat-relevant, thin-irrelevant terms)
3  *
4  * Here, the relevant terms are smeared and the irrelevant terms are not smeared.
5  * Code provided by Thomas Kaltenbrunner.
6  *
7  */
8 
9 #include "chromabase.h"
16 
18 
19 namespace Chroma
20 {
21 
22  //! Hooks to register the class with the fermact factory
23  namespace EvenOddPrecSLRCFermActEnv
24  {
25  //! Callback function
26  WilsonTypeFermAct<LatticeFermion,
27  multi1d<LatticeColorMatrix>,
28  multi1d<LatticeColorMatrix> >* createFermAct4D(XMLReader& xml_in,
29  const std::string& path)
30  {
31  return new EvenOddPrecSLRCFermAct(CreateFermStateEnv::reader(xml_in, path),
32  CloverFermActParams(xml_in, path));
33  }
34 
35  //! Callback function
36  /*! Differs in return type */
37  FermionAction<LatticeFermion,
38  multi1d<LatticeColorMatrix>,
39  multi1d<LatticeColorMatrix> >* createFermAct(XMLReader& xml_in,
40  const std::string& path)
41  {
42  return createFermAct4D(xml_in, path);
43  }
44 
45  //! Name to be used
46  const std::string name = "SLRC";
47 
48  //! Local registration flag
49  static bool registered = false;
50 
51  //! Register all the factories
52  bool registerAll()
53  {
54  bool success = true;
55  if (! registered)
56  {
58  success &= Chroma::TheFermionActionFactory::Instance().registerObject(name, createFermAct);
60  registered = true;
61  }
62  return success;
63  }
64  }
65 
66 
67  //! Produce a linear operator for this action
68  /*!
69  * The operator acts on the odd subset
70  *
71  * \param state gauge field (Read)
72  */
73  EvenOddPrecLogDetLinearOperator<LatticeFermion,
74  multi1d<LatticeColorMatrix>,
75  multi1d<LatticeColorMatrix> >*
77  {
78  return new EvenOddPrecSLRCLinOp(state,param);
79  }
80 
81 }
82 
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 SLRC-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 (fat-relevant, thin-irrelevant terms)
Even-odd preconditioned Clover linear operator (fat-relevant, thin-irrelevant terms)
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.
WilsonTypeFermAct< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createFermAct4D(XMLReader &xml_in, const std::string &path)
Callback function.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
const std::string name
Name to be used.
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.