Bridge++  Ver. 2.0.2
force_G_Plaq_SF.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_G_PLAQ_SF_INCLUDED
15 #define FORCE_G_PLAQ_SF_INCLUDED
16 
17 #include "force_G.h"
18 
20 
21 #include "IO/bridgeIO.h"
22 using Bridge::vout;
23 
24 
64 class Force_G_Plaq_SF : public Force_G
65 {
66  public:
67  static const std::string class_name;
68 
69  private:
71 
72  //- NB. m_U has been defined in force_G.h
73  // Field_G *m_U;
74 
75  double m_beta;
76 
78  // double *m_phi;
79  std::vector<double> m_phi;
81  // double *m_phipr;
82  std::vector<double> m_phipr;
84  double m_ct;
85 
87 
88  public:
90  : m_vl(CommonParameters::Vlevel()) {}
91 
92  Force_G_Plaq_SF(const Parameters& params)
93  : m_vl(CommonParameters::Vlevel())
94  {
95  set_parameters(params);
96  }
97 
99 
100  void set_parameters(const Parameters& params);
101  void set_parameters(const double beta,
102  double *phi, double *phipr, const double ct);
103 
104  void get_parameters(Parameters& params) const;
105 
106  //- NB. set_config has been defined in force_G.h
107  // void set_config(Field *U)
108 
109  void force_core(Field&);
110 
114  void print_force(const Field_G *);
115 
116 #ifdef USE_FACTORY
117  private:
118  static Force_G *create_object()
119  {
120  return new Force_G_Plaq_SF();
121  }
122 
123  static Force_G *create_object_with_params(const Parameters& params)
124  {
125  return new Force_G_Plaq_SF(params);
126  }
127 
128  public:
129  static bool register_factory()
130  {
131  bool init = true;
132  init &= Force_G::Factory::Register("Force_G_Plaq_SF", create_object);
133  init &= Force_G::Factory_params::Register("Force_G_Plaq_SF", create_object_with_params);
134  return init;
135  }
136 #endif
137 };
138 #endif
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Force_G_Plaq_SF::m_staple
Staple_SF m_staple
Definition: force_G_Plaq_SF.h:86
Parameters
Class for parameters.
Definition: parameters.h:46
Force_G_Plaq_SF
HMC force class for plaquette gauge force with SF BC.
Definition: force_G_Plaq_SF.h:64
Force_G_Plaq_SF::print_force
void print_force(const Field_G *)
Print out the gauge force for the boundary spatial links (for debugging).
Definition: force_G_Plaq_SF.cpp:171
Force_G_Plaq_SF::force_core
void force_core(Field &)
Definition: force_G_Plaq_SF.cpp:131
Force_G_Plaq_SF::~Force_G_Plaq_SF
~Force_G_Plaq_SF()
Definition: force_G_Plaq_SF.h:98
Force_G
Base class of gauge force calculation.
Definition: force_G.h:31
Staple_SF
Staple construction.
Definition: staple_SF.h:36
Force_G_Plaq_SF::Force_G_Plaq_SF
Force_G_Plaq_SF()
Definition: force_G_Plaq_SF.h:89
Force_G_Plaq_SF::m_vl
Bridge::VerboseLevel m_vl
Definition: force_G_Plaq_SF.h:70
Force_G_Plaq_SF::m_beta
double m_beta
Definition: force_G_Plaq_SF.h:75
Force_G_Plaq_SF::class_name
static const std::string class_name
Definition: force_G_Plaq_SF.h:67
Force_G_Plaq_SF::m_phipr
std::vector< double > m_phipr
SF boundary condition at t=Nt.
Definition: force_G_Plaq_SF.h:82
force_G.h
Force_G_Plaq_SF::set_parameters
void set_parameters(const Parameters &params)
Definition: force_G_Plaq_SF.cpp:25
staple_SF.h
Force_G_Plaq_SF::Force_G_Plaq_SF
Force_G_Plaq_SF(const Parameters &params)
Definition: force_G_Plaq_SF.h:92
Force_G_Plaq_SF::get_parameters
void get_parameters(Parameters &params) const
Definition: force_G_Plaq_SF.cpp:58
Force_G_Plaq_SF::m_phi
std::vector< double > m_phi
SF boundary condition at t=0.
Definition: force_G_Plaq_SF.h:79
Force_G_Plaq_SF::m_ct
double m_ct
SF boundary improvement coefficient for the plaquatte force.
Definition: force_G_Plaq_SF.h:84
Field
Container of Field-type object.
Definition: field.h:46
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512