CHROMA
inline_prop_colorvec_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*! \file
4  * \brief Compute the propagator elements M^-1 * multi1d<LatticeColorVector>
5  *
6  * Propagator calculation on a colorstd::vector
7  */
8 
9 #ifndef __inline_prop_colorvec_w_h__
10 #define __inline_prop_colorvec_w_h__
11 
12 #include "chromabase.h"
14 #include "io/qprop_io.h"
15 #include "io/xml_group_reader.h"
16 
17 namespace Chroma
18 {
19  /*! \ingroup inlinehadron */
20  namespace InlinePropColorVecEnv
21  {
22  bool registerAll();
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
26  struct Params
27  {
28  Params();
29  Params(XMLReader& xml_in, const std::string& path);
30 
31  unsigned long frequency;
32 
33  struct Param_t
34  {
35  struct Contract_t
36  {
37  int num_vecs; /*!< Number of color vectors to use */
38  int decay_dir; /*!< Decay direction */
39  multi1d<int> t_sources; /*!< Array of time slice sources for props */
40  };
41 
44  } param;
45 
47  {
48  std::string gauge_id; /*!< Gauge field */
49  std::string colorvec_id; /*!< LatticeColorVector EigenInfo */
50  std::string prop_id; /*!< Output propagator solution id */
51  GroupXML_t prop_obj; /*!< Map for output propagator solutions */
53 
54  std::string xml_file; // Alternate XML file pattern
55  };
56 
57 
58  //! Inline task for compute LatticeColorVector matrix elements of a propagator
59  /*! \ingroup inlinehadron */
61  {
62  public:
64  InlineMeas(const Params& p) : params(p) {}
66 
67  unsigned long getFrequency(void) const {return params.frequency;}
68 
69  //! Do the measurement
70  void operator()(const unsigned long update_no,
71  XMLWriter& xml_out);
72 
73  protected:
74  //! Do the measurement
75  void func(const unsigned long update_no,
76  XMLWriter& xml_out);
77 
78  private:
80  };
81 
82  } // namespace PropColorVec
83 
84 
85 }
86 
87 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline task for compute LatticeColorVector matrix elements of a propagator.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Routines associated with Chroma propagator IO.
Propagator parameters.
Definition: qprop_io.h:75
Hold group xml and type id.
struct Chroma::InlinePropColorVecEnv::Params::Param_t param
struct Chroma::InlinePropColorVecEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.