CHROMA
inline_seqprop_test_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Test sequential propagator
4  *
5  * Sequential source test
6  */
7 
8 #ifndef __inline_seqprop_test_w_h__
9 #define __inline_seqprop_test_w_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineSeqPropTestEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22 
23  //! Parameter structure
24  /*! \ingroup inlinehadron */
25  struct Params
26  {
27  Params();
28  Params(XMLReader& xml_in, const std::string& path);
29  void writeXML(XMLWriter& xml_out, const std::string& path);
30 
31  unsigned long frequency;
32 
33  PropSourceSmear_t smear_header; /*!< Smearing to apply on seqprop at the source */
34 
35  //! Propagators
37  {
38  std::string gauge_id; /*!< Input Gauge id */
39  multi1d<std::string> sink_ids; /*!< forward sink smeared propagators needed for 2-pt function */
40  std::string seqprop_id; /*!< backward propagator */
41  int gamma_insertion; /*!< second gamma insertion */
43 
44  std::string xml_file; /*!< Alternate XML file pattern */
45  };
46 
47  //! Inline test of sequential propagators
48  /*! \ingroup inlinehadron */
50  {
51  public:
53  InlineMeas(const Params& p) : params(p) {}
55 
56  unsigned long getFrequency(void) const {return params.frequency;}
57 
58  //! Do the measurement
59  void operator()(const unsigned long update_no,
60  XMLWriter& xml_out);
61 
62  protected:
63  //! Do the measurement
64  void func(const unsigned long update_no,
65  XMLWriter& xml_out);
66 
67  private:
69  };
70 
71  }
72 
73 }
74 
75 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline test of sequential propagators.
void operator()(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 func(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.
struct Chroma::InlineSeqPropTestEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)
Source-smearing parameters.
Definition: qprop_io.h:42