CHROMA
inline_wilson_flow.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 // inline_reweight_w.h
3 /*! \file
4  * \brief Wilson Flow a configuration
5  *
6  * ---More documentation here---
7  */
8 
9 #ifndef __inline_wilson_flow_h__
10 #define __inline_wilson_flow_h__
11 
12 #include "chromabase.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineWilsonFlowEnv
19  {
20 
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 
30  unsigned long frequency;
31 
32  struct Param_t
33  {
34  int version ;
35  int nstep ;
36  Real wtime ;
37  int t_dir ; // the time direction of measurements
38  multi1d<bool> smear_dirs; /*!< Only allow smearing and staples in these directions */
39  } param;
40 
42  {
43  std::string gauge_in; /*!< Gauge fields */
44  std::string gauge_out; /*!< Gauge fields */
46 
47  std::string xml_file; // Alternate XML file pattern
48  };
49 
50 
51  //! Inline task for running the gauge Wilson Flow
52  /*! \ingroup inlinehadron */
54  {
55  public:
57  InlineMeas(const Params& p) : params(p) {}
59 
60  unsigned long getFrequency(void) const {return params.frequency;}
61 
62  //! Do the measurement
63  void operator()(const unsigned long update_no,
64  XMLWriter& xml_out);
65 
66  protected:
67  //! Do the measurement
68  void func(const unsigned long update_no,
69  XMLWriter& xml_out);
70 
71  private:
73  };
74 
75  } // namespace InlineWilsonFlowEnv
76 
77 
78 } // namespace Chroma
79 
80 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline task for running the gauge Wilson Flow.
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
struct Chroma::InlineWilsonFlowEnv::Params::Param_t param
struct Chroma::InlineWilsonFlowEnv::Params::NamedObject_t named_obj