Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_G_Rectangle_SF.h
Go to the documentation of this file.
1 
15 #ifndef ACTION_G_RECTANGLE_SF_INCLUDED
16 #define ACTION_G_RECTANGLE_SF_INCLUDED
17 
18 #include "action.h"
19 #include "staples_SF.h"
20 #include "shiftField_lex.h"
21 
22 #include "bridgeIO.h"
23 using Bridge::vout;
24 
26 
103 //- parameters class
105 {
106  public:
108 };
109 //- end
110 
112 {
113  private:
114  int Nc;
115 
116  double m_beta;
117  double m_c_plaq;
118  double m_c_rect;
119 
120  std::string m_label;
122 
127 
129 
132  // double *m_phi;
133  // double *m_phipr;
135  double m_ct;
137  double m_ctr;
138 
139  public:
141  : Action(), Nc(CommonParameters::Nc()), wk(Nc), wkpr(Nc)
142  {
143  }
144 
146 
147  void set_parameters(const Parameters& params);
148 
149  void set_parameters(double beta, double c_plaq, double c_rect,
150  double *phi, double *phipr, double ct, double ctr);
151 
152  void set_label(std::string label)
153  {
154  m_label = label;
155  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
156  }
157 
158  std::string get_label()
159  {
160  return m_label;
161  }
162 
163  void set_config(Field *U)
164  {
165  m_U = (Field_G *)U;
166  }
167 
169  {
170  m_status_linkv = 0;
171  }
172 
173  double langevin(RandomNumbers *);
174 
175  double calcH();
176 
177  // double calcH_slow();
178 
179  const Field force();
180 
181  // const Field force_slow();
182 };
183 #endif