Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
force_G_Rectangle.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_G_RECTANGLE_INCLUDED
15 #define FORCE_G_RECTANGLE_INCLUDED
16 
17 #include "force_G.h"
18 
20 #include "Field/shiftField_lex.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
36 class Force_G_Rectangle : public Force_G
37 {
38  public:
39  static const std::string class_name;
40 
41  private:
42  //- NB. m_U has been defined in force_G.h
43  // Field_G *m_U;
44 
45  double m_beta;
46  double m_c_plaq;
47  double m_c_rect;
48 
51 
52  public:
54  : Force_G() {}
55 
57 
58  void set_parameters(const Parameters& params);
59  void set_parameters(const double beta,
60  const double c_plaq, const double c_rect);
61 
62  //- NB. set_config has been defined in force_G.h
63  // void set_config(Field *U);
64 
65  void force_core(Field&);
66 
67 #ifdef USE_FACTORY
68  private:
69  static Force_G *create_object()
70  {
71  return new Force_G_Rectangle();
72  }
73 
74  public:
75  static bool register_factory()
76  {
77  return Force_G::Factory::Register("Force_G_Rectangle", create_object);
78  }
79 #endif
80 };
81 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
ShiftField_lex m_shift
Container of Field-type object.
Definition: field.h:45
void force_core(Field &)
Class for parameters.
Definition: parameters.h:46
static const std::string class_name
Staple construction.
Definition: staple_lex.h:39
Base class of gauge force calculation.
Definition: force_G.h:31
void set_parameters(const Parameters &params)
HMC force class for rectangular gauge action.
Methods to shift a field in the lexical site index.