CHROMA
no_quark_displacement.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief No quark displacement
4  */
5 
6 #ifndef __no_quark_displacement_h__
7 #define __no_quark_displacement_h__
8 
11 
12 namespace Chroma
13 {
14  //! Name and registration
15  /*! @ingroup smear */
16  namespace NoQuarkDisplacementEnv
17  {
18  bool registerAll();
19 
20  //! Return the name
22 
23  //! Params for no quark displacement
24  /*! @ingroup smear */
25  struct Params
26  {
27  Params() {}
28  Params(XMLReader& in, const std::string& path);
29  void writeXML(XMLWriter& in, const std::string& path) const;
30  };
31 
32 
33  //! No quark displacement
34  /*! @ingroup smear
35  *
36  * No quark displacement object
37  */
38  template<typename T>
39  class QuarkDisplace : public QuarkDisplacement<T>
40  {
41  public:
42  //! Full constructor
43  QuarkDisplace(const Params& p) : params(p) {}
44 
45  //! Displace the quark
46  void operator()(T& quark,
47  const multi1d<LatticeColorMatrix>& u,
48  enum PlusMinus isign) const
49  { /* nop */ }
50 
51  private:
52  //! Hide partial constructor
54 
55  private:
56  Params params; /*!< displacement params */
57  };
58 
59  } // end namespace
60 
61  //! Reader
62  /*! @ingroup smear */
63  void read(XMLReader& xml, const std::string& path, NoQuarkDisplacementEnv::Params& param);
64 
65  //! Writer
66  /*! @ingroup smear */
67  void write(XMLWriter& xml, const std::string& path, const NoQuarkDisplacementEnv::Params& param);
68 
69 } // end namespace Chroma
70 
71 #endif
void operator()(T &quark, const multi1d< LatticeColorMatrix > &u, enum PlusMinus isign) const
Displace the quark.
QuarkDisplace(const Params &p)
Full constructor.
Base class for quark displacement.
Parallel transport a lattice field.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
std::string getName()
Return the name.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::T T
static QDP_ColorVector * in
::std::string string
Definition: gtest.h:1979
Quark displacement.
Params for no quark displacement.
void writeXML(XMLWriter &in, const std::string &path) const
Parameters for running code.