CHROMA
sf_wave_source_const.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Wave source construction fpr Schroedinger Functional
4  */
5 
6 #ifndef __sf_wave_source_const_h__
7 #define __sf_wave_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 SFWaveQuarkSourceConstEnv
19  {
20  bool registerAll();
21 
22  //! Return the name
24 
25  //! Wave 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  multi1d<int> mom ; /*!< plane wave momentum */
39  };
40 
41 
42  //! Wave source construction for Schroedinger Functional
43  /*! @ingroup sources
44  *
45  * Create a wave propagator source
46  */
47  template<typename T>
49  {
50  public:
51  //! Full constructor
52  SourceConst(const Params& p) : params(p) {}
53 
54  //! Construct the source
55  T operator()(const multi1d<LatticeColorMatrix>& u) const;
56 
57  private:
58  //! Hide partial constructor
60 
61  private:
62  Params params; /*!< source params */
63  };
64 
65  } // end namespace
66 
67 } // end namespace Chroma
68 
69 
70 #endif
Base class for quark source construction.
Wave source construction for Schroedinger Functional.
T operator()(const multi1d< LatticeColorMatrix > &u) const
Construct the source.
SourceConst(const Params &p)
Full constructor.
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.