Go to the documentation of this file.
77 const std::vector<int> bc)
80 assert(bc.size() == Ndim);
96 for (
int mu = 0; mu < Ndim; ++mu) {
138 copy(force_, force1);
141 axpy(force_, 1.0, force1);
175 axpy(force, 1.0, force2);
182 for (
int mu = 0; mu <
m_Ndim; ++mu) {
183 for (
int nu = 0; nu <
m_Ndim; ++nu) {
184 if (nu == mu)
continue;
189 staple.
upper(Cmu_ud1, *
m_U, mu, nu);
192 staple.
lower(Cmu_ud2, *
m_U, mu, nu);
195 axpy(Cmu_ud1, -1.0, Cmu_ud2);
void setpart_ex(int ex, const Field &w, int exw)
void set_string(const string &key, const string &value)
void H(Field &, const Field &)
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
Field_G * m_Cud
for force calculation
void set(const int jin, const int site, const int jex, double v)
Force_F_CloverTerm * m_force_csw
Clover term force.
void set_double(const string &key, const double value)
int index_dir(const int mu, const int nu)
void force_udiv(Field &force, const Field &eta)
For recursive calculation of smeared force.
Force calculation for clover term of clover fermion.
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
Fopr_Clover * m_fopr_c
fermion operator
void set_parameters(const Parameters ¶ms)
sets parameters by a Parameter object: to be implemented in a subclass.
void lower(Field_G &, const Field_G &, const int mu, const int nu)
constructs lower staple in mu-nu plane.
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
void get_parameters(Parameters ¶ms) const
Getting parameters of clover fermion force.
void copy(Field &y, const Field &x)
copy(y, x): y = x
void init(const std::string)
std::string m_repr
gamma matrix representation
static const std::string class_name
virtual void set_mode(const std::string &mode)
in Force, setting the mode is optional when H is nonhermitian.
void set_parameters(const Parameters ¶ms)
Setting parameters of clover fermion force.
int fetch_int_vector(const string &key, vector< int > &value) const
Force_F_Wilson_Nf2 * m_force_w
Wilson fermion force.
void set_int_vector(const string &key, const vector< int > &value)
void upper(Field_G &, const Field_G &, const int mu, const int nu)
constructs upper staple in mu-nu plane.
void set_parameters(const Parameters ¶ms)
void set_component()
Set building components for force calculation.
static VerboseLevel set_verbose_level(const std::string &str)
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Core implemetation of clover force calculation.
int fetch_string(const string &key, string &value) const
Force for the standard Wilson fermion operator.
Wilson-type fermion field.
int fetch_double(const string &key, double &value) const
double m_kappa
hopping parameter
void set_parameters(const Parameters ¶ms)
Setting parameters of clover fermion force.
int m_Ndim
spacetime dimension
void crucial(const char *format,...)
Container of Field-type object.
std::vector< int > m_boundary
boundary conditions
double m_cSW
clover coefficient
static int get_thread_id()
returns thread id.
Bridge::VerboseLevel m_vl
void general(const char *format,...)
static std::string get_verbose_level(const VerboseLevel vl)