Bridge++  Ver. 2.0.2
force_F_Wilson_Nf2.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_WILSON_NF2_INCLUDED
15 #define FORCE_F_WILSON_NF2_INCLUDED
16 
17 #include "force_F.h"
18 #include "tensorProd.h"
19 
20 #include "Fopr/fopr_Wilson.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
38 class Force_F_Wilson_Nf2 : public Force
39 {
40  public:
41  static const std::string class_name;
42 
43  private:
45 
46  double m_kappa;
47  std::vector<int> m_boundary;
50  std::string m_repr;
51 
52  public:
55  : m_vl(CommonParameters::Vlevel())
56  {
57  m_repr = "Dirac";
60  }
61 
63  Force_F_Wilson_Nf2(const std::string repr)
64  : m_vl(CommonParameters::Vlevel())
65  {
66  m_repr = repr;
69  }
70 
72  : m_vl(CommonParameters::Vlevel())
73  {
74  std::string repr = params.get_string("gamma_matrix_type");
75 
76  // m_repr = repr;
77  // m_fopr_w = new Fopr_Wilson(m_repr);
78  // m_boundary.resize(CommonParameters::Ndim());
79  m_repr = repr;
80  m_fopr_w = new Fopr_Wilson(params);
82 
83  set_parameters(params);
84  }
85 
87  {
88  delete m_fopr_w;
89  }
90 
91  void set_parameters(const Parameters& params);
92  void set_parameters(const double kappa, const std::vector<int> bc);
93 
94  void get_parameters(Parameters& params) const;
95 
96  void set_config(Field *U)
97  {
98  m_U = (Field_G *)U;
99  m_fopr_w->set_config(U);
100  }
101 
102  void force_udiv(Field& force, const Field& eta);
103  void force_udiv1(Field& force, const Field& zeta, const Field& eta);
104 
105  private:
106  void force_udiv1_impl(Field_G& force, const Field_F& zeta, const Field_F& eta);
107 };
108 #endif
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
CommonParameters::Ndim
static int Ndim()
Definition: commonParameters.h:117
Force_F_Wilson_Nf2::force_udiv1
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
Definition: force_F_Wilson_Nf2.cpp:103
Parameters
Class for parameters.
Definition: parameters.h:46
Force_F_Wilson_Nf2::m_kappa
double m_kappa
Definition: force_F_Wilson_Nf2.h:46
Force_F_Wilson_Nf2::m_vl
Bridge::VerboseLevel m_vl
Definition: force_F_Wilson_Nf2.h:44
Force::m_U
Field_G * m_U
Definition: force_F.h:66
fopr_Wilson.h
Force_F_Wilson_Nf2::get_parameters
void get_parameters(Parameters &params) const
Definition: force_F_Wilson_Nf2.cpp:44
Force_F_Wilson_Nf2::~Force_F_Wilson_Nf2
~Force_F_Wilson_Nf2()
Definition: force_F_Wilson_Nf2.h:86
Force_F_Wilson_Nf2::m_fopr_w
Fopr_Wilson * m_fopr_w
Definition: force_F_Wilson_Nf2.h:48
Force_F_Wilson_Nf2::Force_F_Wilson_Nf2
DEPRECATED Force_F_Wilson_Nf2()
Definition: force_F_Wilson_Nf2.h:54
Force_F_Wilson_Nf2::Force_F_Wilson_Nf2
DEPRECATED Force_F_Wilson_Nf2(const std::string repr)
Definition: force_F_Wilson_Nf2.h:63
Force_F_Wilson_Nf2::force_udiv
void force_udiv(Field &force, const Field &eta)
Definition: force_F_Wilson_Nf2.cpp:82
force_F.h
Force_F_Wilson_Nf2::Force_F_Wilson_Nf2
Force_F_Wilson_Nf2(const Parameters &params)
Definition: force_F_Wilson_Nf2.h:71
Force_F_Wilson_Nf2::m_boundary
std::vector< int > m_boundary
Definition: force_F_Wilson_Nf2.h:47
Force_F_Wilson_Nf2::set_parameters
void set_parameters(const Parameters &params)
Definition: force_F_Wilson_Nf2.cpp:19
Force_F_Wilson_Nf2::m_psf
Field_F m_psf
Definition: force_F_Wilson_Nf2.h:49
Org::Fopr_Wilson::set_config
void set_config(Field *U)
sets the gauge configuration.
Definition: fopr_Wilson_impl.cpp:188
Force_F_Wilson_Nf2
Force for the standard Wilson fermion operator.
Definition: force_F_Wilson_Nf2.h:38
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
Field
Container of Field-type object.
Definition: field.h:46
Force_F_Wilson_Nf2::class_name
static const std::string class_name
Definition: force_F_Wilson_Nf2.h:41
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Force_F_Wilson_Nf2::force_udiv1_impl
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Definition: force_F_Wilson_Nf2.cpp:119
Org::Fopr_Wilson
Definition: fopr_Wilson_impl.h:38
Force_F_Wilson_Nf2::set_config
void set_config(Field *U)
Definition: force_F_Wilson_Nf2.h:96
Force
Base class of fermion force calculation.
Definition: force_F.h:31
DEPRECATED
#define DEPRECATED
Definition: configure.h:28
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Fopr_Wilson
Org::Fopr_Wilson Fopr_Wilson
Wilson fermion operator.
Definition: fopr_Wilson.h:50
Force_F_Wilson_Nf2::m_repr
std::string m_repr
Definition: force_F_Wilson_Nf2.h:50