Bridge++  Ver. 2.0.2
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:
43 
44  //- NB. m_U has been defined in force_G.h
45  // Field_G *m_U;
46 
47  double m_beta;
48  double m_c_plaq;
49  double m_c_rect;
50 
53 
54  public:
56  : m_vl(CommonParameters::Vlevel()) {}
57 
59  : m_vl(CommonParameters::Vlevel())
60  {
61  set_parameters(params);
62  }
63 
65 
66  void set_parameters(const Parameters& params);
67  void set_parameters(const double beta,
68  const double c_plaq, const double c_rect);
69 
70  void get_parameters(Parameters& params) const;
71 
72  //- NB. set_config has been defined in force_G.h
73  // void set_config(Field *U);
74 
75  void force_core(Field&);
76 
77 #ifdef USE_FACTORY
78  private:
79  static Force_G *create_object()
80  {
81  return new Force_G_Rectangle();
82  }
83 
84  static Force_G *create_object_with_params(const Parameters& params)
85  {
86  return new Force_G_Rectangle(params);
87  }
88 
89  public:
90  static bool register_factory()
91  {
92  bool init = true;
93  init &= Force_G::Factory::Register("Force_G_Rectangle", create_object);
94  init &= Force_G::Factory_params::Register("Force_G_Rectangle", create_object_with_params);
95  return init;
96  }
97 #endif
98 };
99 #endif
bridgeIO.h
Force_G_Rectangle::Force_G_Rectangle
Force_G_Rectangle()
Definition: force_G_Rectangle.h:55
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Force_G_Rectangle::m_staple
Staple_lex m_staple
Definition: force_G_Rectangle.h:51
Parameters
Class for parameters.
Definition: parameters.h:46
shiftField_lex.h
Force_G
Base class of gauge force calculation.
Definition: force_G.h:31
Force_G_Rectangle::m_shift
ShiftField_lex m_shift
Definition: force_G_Rectangle.h:52
Force_G_Rectangle
HMC force class for rectangular gauge action.
Definition: force_G_Rectangle.h:36
Force_G_Rectangle::~Force_G_Rectangle
~Force_G_Rectangle()
Definition: force_G_Rectangle.h:64
Force_G_Rectangle::m_c_rect
double m_c_rect
Definition: force_G_Rectangle.h:49
staple_lex.h
Force_G_Rectangle::force_core
void force_core(Field &)
Definition: force_G_Rectangle.cpp:84
force_G.h
Force_G_Rectangle::m_c_plaq
double m_c_plaq
Definition: force_G_Rectangle.h:48
ShiftField_lex
Methods to shift a field in the lexical site index.
Definition: shiftField_lex.h:39
Force_G_Rectangle::class_name
static const std::string class_name
Definition: force_G_Rectangle.h:39
Staple_lex
Staple construction.
Definition: staple_lex.h:39
Force_G_Rectangle::m_beta
double m_beta
Definition: force_G_Rectangle.h:47
Force_G_Rectangle::set_parameters
void set_parameters(const Parameters &params)
Definition: force_G_Rectangle.cpp:25
Field
Container of Field-type object.
Definition: field.h:46
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Force_G_Rectangle::Force_G_Rectangle
Force_G_Rectangle(const Parameters &params)
Definition: force_G_Rectangle.h:58
Force_G_Rectangle::m_vl
Bridge::VerboseLevel m_vl
Definition: force_G_Rectangle.h:42
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Force_G_Rectangle::get_parameters
void get_parameters(Parameters &params) const
Definition: force_G_Rectangle.cpp:51