Bridge++  Version 1.5.4
 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/action.h"
20 
21 #include "IO/bridgeIO.h"
22 using Bridge::vout;
23 
25 
104 {
105  public:
106  static const std::string class_name;
107 
108  private:
109  int m_Nc;
110 
111  double m_beta;
112  double m_c_plaq;
113  double m_c_rect;
114 
115  std::string m_label;
116 
121 
124  // double *m_phi;
125  // double *m_phipr;
127  double m_ct;
129  double m_ctr;
130 
131  public:
134  {
135  m_force_G = Force_G::New("Force_G_Rectangle_SF");
136  }
137 
139  {
140  delete m_force_G;
141  }
142 
143  void set_parameters(const Parameters& params);
144 
145  void set_parameters(const double beta, const double c_plaq, const double c_rect,
146  double *phi, double *phipr,
147  const double ct, double ctr);
148 
149  void set_label(const std::string label)
150  {
151  m_label = label;
152  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
153  }
154 
155  std::string get_label()
156  {
157  return m_label;
158  }
159 
160  void set_config(Field *U)
161  {
162  m_U = (Field_G *)U;
163  }
164 
165  double langevin(RandomNumbers *);
166 
167  double calcH();
168 
169  void force(Field&);
170 
171 #ifdef USE_FACTORY
172  private:
173  static Action *create_object()
174  {
175  return new Action_G_Rectangle_SF();
176  }
177 
178  public:
179  static bool register_factory()
180  {
181  return Action::Factory::Register("Action_G_Rectangle_SF", create_object);
182  }
183 #endif
184 };
185 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
void detailed(const char *format,...)
Definition: bridgeIO.cpp:216
void set_label(const std::string label)
Container of Field-type object.
Definition: field.h:45
Staple construction.
Definition: staple_SF.h:36
Class for parameters.
Definition: parameters.h:46
Base class of HMC action class family.
Definition: action.h:36
void set_parameters(const Parameters &params)
SU(N) gauge field.
Definition: field_G.h:38
Base class of gauge force calculation.
Definition: force_G.h:31
double m_ct
SF boundary improvement coefficient for the plaquatte action.
Common parameter class: provides parameters as singleton.
HMC action class for rectangular gauge action with the SF BC.
Bridge::VerboseLevel m_vl
Definition: action.h:75
Base class of random number generators.
Definition: randomNumbers.h:43
double m_ctr
SF boundary improvement coefficient for the rectangle action.
static const std::string class_name
double langevin(RandomNumbers *)
Langevis step.
Methods to shift a field in the lexical site index.
Mat_SU_N m_wk
SF boundary condition.
void set_config(Field *U)
setting pointer to the gauge configuration.