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