Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_G_Plaq.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_G_PLAQ_INCLUDED
15 #define ACTION_G_PLAQ_INCLUDED
16 
17 #include "action.h"
18 #include "staples.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
24 
32 //- parameters class
33 class Parameters_Action_G_Plaq : virtual public Parameters
34 {
35  public:
37 };
38 //- end
39 
40 class Action_G_Plaq : public Action
41 {
42  private:
43  double m_beta;
44  std::string m_label;
46 
50 
52 
53  public:
54 
56  : Action() {}
57 
59 
60  void set_parameters(const Parameters& params);
61  void set_parameters(double beta);
62 
63  void set_label(std::string label)
64  {
65  m_label = label;
66  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
67  }
68 
69  std::string get_label()
70  {
71  return m_label;
72  }
73 
74  void set_config(Field *U)
75  {
76  m_U = (Field_G *)U;
77  }
78 
79  void notify_linkv()
80  {
81  m_status_linkv = 0;
82  }
83 
84  double langevin(RandomNumbers *);
85 
86  double calcH();
87 
88  const Field force();
89 };
90 #endif