Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_G_Rectangle.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_G_RECTANGLE_INCLUDED
15 #define ACTION_G_RECTANGLE_INCLUDED
16 
17 #include "action.h"
18 #include "staples.h"
19 #include "shiftField_lex.h"
20 
21 #include "bridgeIO.h"
22 using Bridge::vout;
23 
25 
35 //- parameters class
37 {
38  public:
40 };
41 //- end
42 
43 class Action_G_Rectangle : public Action
44 {
45  private:
46  double m_beta;
47  double m_c_plaq;
48  double m_c_rect;
49  std::string m_label;
51 
56 
58 
59  public:
61  : Action() {}
62 
64 
65  void set_parameters(const Parameters& params);
66  void set_parameters(double beta, double c_plaq, double c_rect);
67 
68  void set_label(std::string label)
69  {
70  m_label = label;
71  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
72  }
73 
74  std::string get_label()
75  {
76  return m_label;
77  }
78 
79  void set_config(Field *U)
80  {
81  m_U = (Field_G *)U;
82  }
83 
84  void notify_linkv()
85  {
86  m_status_linkv = 0;
87  }
88 
89  double langevin(RandomNumbers *);
90 
91  double calcH();
92 
93  const Field force();
94 };
95 #endif