CHROMA
sf_wall_source_const.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Wall source construction fpr Schroedinger Functional
4  */
5 
6 #ifndef __sf_wall_source_const_h__
7 #define __sf_wall_source_const_h__
8 
10 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15 
16  //! Name and registration
17  /*! @ingroup sources */
18  namespace SFWallQuarkSourceConstEnv
19  {
20  bool registerAll();
21 
22  //! Return the name
24 
25  //! Wall source parameters
26  /*! @ingroup sources */
27  struct Params
28  {
29  Params();
30  Params(XMLReader& in, const std::string& path);
31  void writeXML(XMLWriter& in, const std::string& path) const;
32 
33  GroupXML_t fermbc; /*!< xml std::string holding smearing params */
34  PlusMinus direction; /*!< direction for decay */
35 
36  int j_decay; /*!< decay direction */
37  int t_source; /*!< source time slice location */
38  };
39 
40 
41  //! Wall source construction for Schroedinger Functional
42  /*! @ingroup sources
43  *
44  * Create a wall propagator source
45  */
46  template<typename T>
48  {
49  public:
50  //! Full constructor
51  SourceConst(const Params& p) : params(p) {}
52 
53  //! Construct the source
54  T operator()(const multi1d<LatticeColorMatrix>& u) const;
55 
56  private:
57  //! Hide partial constructor
59 
60  private:
61  Params params; /*!< source params */
62  };
63 
64  } // end namespace
65 
66 } // end namespace Chroma
67 
68 
69 #endif
Base class for quark source construction.
Wall source construction for Schroedinger Functional.
SourceConst(const Params &p)
Full constructor.
T operator()(const multi1d< LatticeColorMatrix > &u) const
Construct the source.
Plus/Minus type enum from Chroma.
bool registerAll()
Register all the factories.
std::string getName()
Return the name.
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
Source construction.
Hold group xml and type id.
void writeXML(XMLWriter &in, const std::string &path) const
Read an XML group as a std::string.