Bridge++  Ver. 2.0.2
force_F_Wilson_TwistedMass_Nf2.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_TMFWILSON_NF2_INCLUDED
15 #define FORCE_F_TMFWILSON_NF2_INCLUDED
16 
17 #include "force_F.h"
18 #include "tensorProd.h"
19 
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
40 {
41  public:
42  static const std::string class_name;
43 
44  private:
46 
47  double m_kappa;
48  double m_tw_mass;
49  std::vector<int> m_boundary;
52  std::string m_repr;
53 
54  public:
55 
58  : m_vl(CommonParameters::Vlevel())
59  {
60  m_repr = "Dirac";
63  }
64 
66  Force_F_Wilson_TwistedMass_Nf2(const std::string repr)
67  : m_vl(CommonParameters::Vlevel())
68  {
69  m_repr = repr;
72  }
73 
75  : m_vl(CommonParameters::Vlevel())
76  {
77  std::string repr = params.get_string("gamma_matrix_type");
78 
79  // m_repr = repr;
80  // m_fopr_tw = new Fopr_Wilson_TwistedMass(m_repr);
81  // m_boundary.resize(CommonParameters::Ndim());
82 
83  m_repr = repr;
84  m_fopr_tw = new Fopr_Wilson_TwistedMass(params);
86 
87  set_parameters(params);
88  }
89 
91  {
92  delete m_fopr_tw;
93  }
94 
95  void set_parameters(const Parameters& params);
96 
97  void set_parameters(const double kappa, const double tw_mass,
98  const std::vector<int> bc);
99 
100  void get_parameters(Parameters& params) const;
101 
102  void set_config(Field *U)
103  {
104  m_U = (Field_G *)U;
105  m_fopr_tw->set_config(U);
106  }
107 
108  void force_udiv(Field& force, const Field& eta);
109  void force_udiv1(Field& force, const Field& zeta, const Field& eta);
110 
111  private:
112  void force_udiv1_impl(Field_G& force, const Field_F& zeta, const Field_F& eta);
113 };
114 #endif
Force_F_Wilson_TwistedMass_Nf2::class_name
static const std::string class_name
Definition: force_F_Wilson_TwistedMass_Nf2.h:42
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Force_F_Wilson_TwistedMass_Nf2::m_psf
Field_F m_psf
Definition: force_F_Wilson_TwistedMass_Nf2.h:51
CommonParameters::Ndim
static int Ndim()
Definition: commonParameters.h:117
Parameters
Class for parameters.
Definition: parameters.h:46
Force_F_Wilson_TwistedMass_Nf2::m_vl
Bridge::VerboseLevel m_vl
Definition: force_F_Wilson_TwistedMass_Nf2.h:45
Force_F_Wilson_TwistedMass_Nf2::force_udiv
void force_udiv(Field &force, const Field &eta)
Definition: force_F_Wilson_TwistedMass_Nf2.cpp:87
Force_F_Wilson_TwistedMass_Nf2::force_udiv1
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
Definition: force_F_Wilson_TwistedMass_Nf2.cpp:108
Force_F_Wilson_TwistedMass_Nf2::force_udiv1_impl
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Definition: force_F_Wilson_TwistedMass_Nf2.cpp:124
AFopr_Wilson_TwistedMass
Twisted-mass Wilson fermion operator.
Definition: afopr_Wilson_TwistedMass.h:38
Force::m_U
Field_G * m_U
Definition: force_F.h:66
Force_F_Wilson_TwistedMass_Nf2::set_config
void set_config(Field *U)
Definition: force_F_Wilson_TwistedMass_Nf2.h:102
Force_F_Wilson_TwistedMass_Nf2::m_kappa
double m_kappa
Definition: force_F_Wilson_TwistedMass_Nf2.h:47
Force_F_Wilson_TwistedMass_Nf2::Force_F_Wilson_TwistedMass_Nf2
Force_F_Wilson_TwistedMass_Nf2(const Parameters &params)
Definition: force_F_Wilson_TwistedMass_Nf2.h:74
Fopr_Wilson_TwistedMass
AFopr_Wilson_TwistedMass< Field > Fopr_Wilson_TwistedMass
Twisted-mass Wilson fermion operator.
Definition: fopr_Wilson_TwistedMass.h:29
Force_F_Wilson_TwistedMass_Nf2::set_parameters
void set_parameters(const Parameters &params)
Definition: force_F_Wilson_TwistedMass_Nf2.cpp:19
force_F.h
Force_F_Wilson_TwistedMass_Nf2::get_parameters
void get_parameters(Parameters &params) const
Definition: force_F_Wilson_TwistedMass_Nf2.cpp:46
Force_F_Wilson_TwistedMass_Nf2::m_boundary
std::vector< int > m_boundary
Definition: force_F_Wilson_TwistedMass_Nf2.h:49
Force_F_Wilson_TwistedMass_Nf2::Force_F_Wilson_TwistedMass_Nf2
DEPRECATED Force_F_Wilson_TwistedMass_Nf2()
Definition: force_F_Wilson_TwistedMass_Nf2.h:57
Force_F_Wilson_TwistedMass_Nf2::~Force_F_Wilson_TwistedMass_Nf2
~Force_F_Wilson_TwistedMass_Nf2()
Definition: force_F_Wilson_TwistedMass_Nf2.h:90
Force_F_Wilson_TwistedMass_Nf2
Force for the twisted-mass Wilson fermion operator.
Definition: force_F_Wilson_TwistedMass_Nf2.h:39
Field_F
Wilson-type fermion field.
Definition: field_F.h:37
Force_F_Wilson_TwistedMass_Nf2::m_tw_mass
double m_tw_mass
Definition: force_F_Wilson_TwistedMass_Nf2.h:48
Parameters::get_string
string get_string(const string &key) const
Definition: parameters.cpp:221
tensorProd.h
Force_F_Wilson_TwistedMass_Nf2::m_repr
std::string m_repr
Definition: force_F_Wilson_TwistedMass_Nf2.h:52
Field
Container of Field-type object.
Definition: field.h:46
Force_F_Wilson_TwistedMass_Nf2::m_fopr_tw
Fopr_Wilson_TwistedMass * m_fopr_tw
Definition: force_F_Wilson_TwistedMass_Nf2.h:50
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
AFopr_Wilson_TwistedMass::set_config
void set_config(Field *U)
sets the gauge configuration.
Definition: afopr_Wilson_TwistedMass-tmpl.h:212
fopr_Wilson_TwistedMass.h
Force
Base class of fermion force calculation.
Definition: force_F.h:31
DEPRECATED
#define DEPRECATED
Definition: configure.h:28
Force_F_Wilson_TwistedMass_Nf2::Force_F_Wilson_TwistedMass_Nf2
DEPRECATED Force_F_Wilson_TwistedMass_Nf2(const std::string repr)
Definition: force_F_Wilson_TwistedMass_Nf2.h:66
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512