Bridge++  Ver. 2.0.2
force_F_Wilson_eo.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_WILSON_EO_INCLUDED
15 #define FORCE_F_WILSON_EO_INCLUDED
16 
17 #include "force_F.h"
18 #include "tensorProd.h"
19 
20 #include "Fopr/fopr_Wilson_eo.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
38 class Force_F_Wilson_eo : public Force
39 {
40  public:
41  static const std::string class_name;
42 
43  private:
45 
47 
48  double m_kappa;
49  std::vector<int> m_boundary;
52  std::string m_repr;
53 
55 
56  public:
59  : m_vl(CommonParameters::Vlevel())
60  {
61  m_repr = "Dirac";
64  }
65 
67  Force_F_Wilson_eo(const std::string repr)
68  : m_vl(CommonParameters::Vlevel())
69  {
70  m_repr = repr;
73  }
74 
76  : m_vl(CommonParameters::Vlevel())
77  {
78  std::string repr = params.get_string("gamma_matrix_type");
79 
80  // m_repr = repr;
81  // m_fopr_w = new Fopr_Wilson_eo(m_repr);
82  // m_boundary.resize(CommonParameters::Ndim());
83  m_repr = repr;
84  m_fopr_w = new Fopr_Wilson_eo(params);
86 
87  set_parameters(params);
88  }
89 
91  {
92  delete m_fopr_w;
93  }
94 
95  void set_parameters(const Parameters& params);
96  void set_parameters(const double kappa, const std::vector<int> bc);
97 
98  void get_parameters(Parameters& params) const;
99 
100  void set_config(Field *U)
101  {
102  m_U = (Field_G *)U;
103  m_fopr_w->set_config(U);
104  }
105 
108  void force_udiv(Field& force, const Field& eta);
109 
114  void force_udiv1(Field& force, const Field& zeta, const Field& eta);
115 
116  private:
117  void force_udiv1_impl(Field_G& force, const Field_F& zeta, const Field_F& eta);
118 };
119 #endif
Force_F_Wilson_eo::m_boundary
std::vector< int > m_boundary
Definition: force_F_Wilson_eo.h:49
Fopr_Wilson_eo
Org::Fopr_Wilson_eo Fopr_Wilson_eo
Even-odd Wilson fermion operator.
Definition: fopr_Wilson_eo.h:51
bridgeIO.h
Force_F_Wilson_eo::force_udiv1
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
Definition: force_F_Wilson_eo.cpp:116
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
CommonParameters::Ndim
static int Ndim()
Definition: commonParameters.h:117
Parameters
Class for parameters.
Definition: parameters.h:46
Force_F_Wilson_eo::set_config
void set_config(Field *U)
Definition: force_F_Wilson_eo.h:100
Force_F_Wilson_eo::m_fopr_w
Fopr_Wilson_eo * m_fopr_w
Definition: force_F_Wilson_eo.h:50
Force_F_Wilson_eo::m_kappa
double m_kappa
Definition: force_F_Wilson_eo.h:48
Index_eo
Even-odd site index.
Definition: index_eo.h:44
Force_F_Wilson_eo::m_index
Index_eo m_index
Definition: force_F_Wilson_eo.h:54
Force_F_Wilson_eo::class_name
static const std::string class_name
Definition: force_F_Wilson_eo.h:41
Force::m_U
Field_G * m_U
Definition: force_F.h:66
Force_F_Wilson_eo::m_vl
Bridge::VerboseLevel m_vl
Definition: force_F_Wilson_eo.h:44
Force_F_Wilson_eo::force_udiv1_impl
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Definition: force_F_Wilson_eo.cpp:132
Force_F_Wilson_eo::Force_F_Wilson_eo
Force_F_Wilson_eo(const Parameters &params)
Definition: force_F_Wilson_eo.h:75
Org::Fopr_Wilson_eo
Definition: fopr_Wilson_eo_impl.h:39
Force_F_Wilson_eo::force_udiv
void force_udiv(Field &force, const Field &eta)
Definition: force_F_Wilson_eo.cpp:82
Force_F_Wilson_eo::Force_F_Wilson_eo
DEPRECATED Force_F_Wilson_eo(const std::string repr)
Definition: force_F_Wilson_eo.h:67
force_F.h
Force_F_Wilson_eo::m_psf
Field_F m_psf
Definition: force_F_Wilson_eo.h:51
Force_F_Wilson_eo::set_parameters
void set_parameters(const Parameters &params)
Definition: force_F_Wilson_eo.cpp:19
Force_F_Wilson_eo::m_repr
std::string m_repr
Definition: force_F_Wilson_eo.h:52
Field_F
Wilson-type fermion field.
Definition: field_F.h:37
Parameters::get_string
string get_string(const string &key) const
Definition: parameters.cpp:221
tensorProd.h
Force_F_Wilson_eo::Force_F_Wilson_eo
DEPRECATED Force_F_Wilson_eo()
Definition: force_F_Wilson_eo.h:58
Field
Container of Field-type object.
Definition: field.h:46
Force_F_Wilson_eo::m_Ueo
Field_G * m_Ueo
Definition: force_F_Wilson_eo.h:46
fopr_Wilson_eo.h
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Force_F_Wilson_eo::get_parameters
void get_parameters(Parameters &params) const
Definition: force_F_Wilson_eo.cpp:45
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Force
Base class of fermion force calculation.
Definition: force_F.h:31
DEPRECATED
#define DEPRECATED
Definition: configure.h:28
Force_F_Wilson_eo
Force for the Wilson fermion operator with even-odd precondition.
Definition: force_F_Wilson_eo.h:38
Org::Fopr_Wilson_eo::set_config
void set_config(Field *U)
setting pointer to the gauge configuration.
Definition: fopr_Wilson_eo_impl.cpp:202
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Force_F_Wilson_eo::~Force_F_Wilson_eo
~Force_F_Wilson_eo()
Definition: force_F_Wilson_eo.h:90