CHROMA
sf_sh_source_const.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Shell source construction for Schroedinger Functional
4  */
5 
6 #ifndef __sf_sh_source_const_h__
7 #define __sf_sh_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 SFShellQuarkSourceConstEnv
19  {
20  bool registerAll();
21 
22  //! Return the name
24 
25  //! Point source parameters
26  /*! @ingroup sources */
27  struct Params
28  {
29  Params();
30  Params(XMLReader& in, const std::string& path);
31  void writeXML(XMLWriter& out, const std::string& path) const;
32 
33  GroupXML_t quark_smearing; /*!< xml std::string holding smearing params */
34  GroupXML_t quark_displacement; /*!< displacement xml */
35  GroupXML_t link_smearing; /*!< link smearing xml */
36 
37  GroupXML_t fermbc; /*!< xml std::string holding smearing params */
38  PlusMinus direction; /*!< direction for decay */
39 
40  int j_decay; /*!< Decay direction */
41  multi1d<int> t_srce; /*!< source location */
42  };
43 
44 
45  //! Shell source construction for Schroedinger Functional
46  /*! @ingroup sources
47  *
48  * Create a shell quark source
49  */
50  template<typename T>
52  {
53  public:
54  //! Full constructor
55  SourceConst(const Params& p) : params(p) {}
56 
57  //! Construct the source
58  T operator()(const multi1d<LatticeColorMatrix>& u) const;
59 
60  private:
61  //! Hide partial constructor
63 
64  private:
65  Params params; /*!< source params */
66  };
67 
68  } // end namespace SFShellQuarkSourceConstEnv
69 
70 } // end namespace Chroma
71 
72 
73 #endif
Base class for quark source construction.
Shell 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.
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 * out
Constructor.
static QDP_ColorVector * in
::std::string string
Definition: gtest.h:1979
Source construction.
Hold group xml and type id.
void writeXML(XMLWriter &out, const std::string &path) const
Read an XML group as a std::string.