Bridge++  Ver. 2.0.2
director_Smear.h
Go to the documentation of this file.
1 
14 #ifndef DIRECTOR_SMEAR_INCLUDED
15 #define DIRECTOR_SMEAR_INCLUDED
16 
17 #include <cassert>
18 
19 #include "smear.h"
20 #include "Tools/director.h"
21 
22 #include "Field/field_G.h"
23 
24 #include "IO/bridgeIO.h"
25 using Bridge::vout;
26 
27 
29 
39 class Director_Smear : public Director
40 {
41  public:
42  static const std::string class_name;
43 
44  private:
46 
47  int m_Nsmear;
50  std::vector<Field_G> m_Usmear;
52 
53  public:
56  : m_vl(CommonParameters::Vlevel())
57  {
58  m_Nsmear = 0;
59  m_smear = smear;
60  m_U = 0;
61  m_status_linkv = 0;
62  }
63 
65  : m_vl(CommonParameters::Vlevel())
66  {
67  m_Nsmear = 0;
68  m_smear = smear;
69  m_U = 0;
70  m_status_linkv = 0;
71 
72  set_parameters(params);
73  }
74 
76  void set_parameters(const Parameters& params);
77  void set_parameters(const int Nsmear);
78 
80  void get_parameters(Parameters& params) const;
81 
83  int get_Nsmear() { return m_Nsmear; }
84 
86  Field *getptr_smearedConfig(const int i_smear);
87 
88  Field_G *get_config(); // smeared config
89  Field_G *get_config(const int i_smear); // intermediate config
90 
92  void set_config(Field *U);
93 
95  void notify_linkv()
96  {
97  m_status_linkv = 0;
98  }
99 
100  private:
102  void smear();
103 };
104 #endif
bridgeIO.h
Director_Smear::m_U
Field_G * m_U
original thin link var.
Definition: director_Smear.h:49
field_G.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Parameters
Class for parameters.
Definition: parameters.h:46
Smear
base class for smearing of link variables.
Definition: smear.h:34
Director_Smear::m_Usmear
std::vector< Field_G > m_Usmear
smeared configs.
Definition: director_Smear.h:50
Director_Smear::m_status_linkv
int m_status_linkv
set to zero when link var. is updated
Definition: director_Smear.h:51
director.h
Director_Smear::Director_Smear
Director_Smear(Smear *smear)
constructor requires pointer to Smear object
Definition: director_Smear.h:55
Director_Smear::getptr_smearedConfig
Field * getptr_smearedConfig(const int i_smear)
get pointer to i-th smeared config (0th is original thin link)
Definition: director_Smear.cpp:88
Director_Smear::set_parameters
void set_parameters(const Parameters &params)
set parameters, must be called before set_config
Definition: director_Smear.cpp:19
Director_Smear::smear
void smear()
smearing is performed by calling a function of Smear object
Definition: director_Smear.cpp:117
Director_Smear::class_name
static const std::string class_name
Definition: director_Smear.h:42
Director_Smear::Director_Smear
Director_Smear(Smear *smear, const Parameters &params)
Definition: director_Smear.h:64
Director_Smear
Manager of smeared configurations.
Definition: director_Smear.h:39
Director_Smear::get_parameters
void get_parameters(Parameters &params) const
get parameters
Definition: director_Smear.cpp:43
Director_Smear::notify_linkv
void notify_linkv()
to be called when configuration is updated
Definition: director_Smear.h:95
smear.h
Director_Smear::get_Nsmear
int get_Nsmear()
get number of applied smearing operation
Definition: director_Smear.h:83
Director_Smear::get_config
Field_G * get_config()
Definition: director_Smear.cpp:101
Director
Manager of commonly used data object in HMC.
Definition: director.h:37
Director_Smear::m_vl
Bridge::VerboseLevel m_vl
Definition: director_Smear.h:45
Field
Container of Field-type object.
Definition: field.h:46
Director_Smear::m_Nsmear
int m_Nsmear
number of smearing to be applied
Definition: director_Smear.h:47
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Director_Smear::set_config
void set_config(Field *U)
set pointer to original thin link variable
Definition: director_Smear.cpp:79
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Director_Smear::m_smear
Smear * m_smear
smearing operator
Definition: director_Smear.h:48
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512