16 #ifdef USE_PARAMETERS_FACTORY
33 #ifdef USE_PARAMETERS_FACTORY
48 const string str_vlevel = params.
get_string(
"verbose_level");
80 for (
int mu = 0; mu < Ndim; ++mu) {
86 assert(bc.size() == Ndim);
93 for (
int mu = 0; mu < Ndim; ++mu) {
165 Field_G force1(Nvol, 1), force2(Nvol, 1);
166 Field_G Umu(Nvol, 1), Unu(Nvol, 1), Utmp(Nvol, 1), Utmp2(Nvol, 1);
167 Field_F vt1(Nvol, 1), vt2(Nvol, 1), vt3(Nvol, 1), vt4(Nvol, 1);
173 Field_F eta2(Nvol, 1), eta3(Nvol, 1);
179 for (
int mu = 0; mu < Ndim; ++mu) {
180 for (
int nu = 0; nu < Ndim; ++nu) {
181 if (nu == mu)
continue;
185 Umu.setpart_ex(0, *
m_U, mu);
186 Unu.setpart_ex(0, *
m_U, nu);
193 copy(force2, force1);
203 axpy(force2, 1.0, force1);
210 axpy(force2, 1.0, force1);
220 axpy(force2, 1.0, force1);
230 axpy(force2, -1.0, force1);
240 axpy(force2, -1.0, force1);
260 for (
int mu = 0; mu <
m_Ndim; ++mu) {
261 for (
int nu = 0; nu <
m_Ndim; ++nu) {
262 if (nu == mu)
continue;
264 staple.
upper(Cmu_ud1, *
m_U, mu, nu);
265 staple.
lower(Cmu_ud2, *
m_U, mu, nu);
266 axpy(Cmu_ud1, -1.0, Cmu_ud2);
void Register_int_vector(const string &, const std::vector< int > &)
void scal(Field &x, const double a)
scal(x, a): x = a * x
void mult_Field_Gd(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
void Register_string(const string &, const string &)
void set(const int jin, const int site, const int jex, double v)
void general(const char *format,...)
Bridge::VerboseLevel m_vl
Container of Field-type object.
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
void copy(Field &y, const Field &x)
copy(y, x): y = x
void addpart_ex(int ex, const Field &w, int exw)
void mult_Field_Gdd(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
Wilson-type fermion field.
int index_dir(int mu, int nu)
double m_kappa
hopping parameter
void mult_gm5(Field &v, const Field &w)
std::vector< int > m_boundary
boundary conditions
void mult_isigma(Field_F &, const Field_F &, const int mu, const int nu)
void force_core(Field &force, const Field &eta)
Force determination for clover fermion.
void set_parameters(const Parameters ¶ms)
Setting parameters of clover fermion force.
void backward(Field &, const Field &, const int mu)
void force_udiv(Field &force, const Field &eta)
For recursive calculation of smeared force.
void mult_Field_Gn(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void set_component()
Set building components for force calculation.
int m_Ndim
spacetime dimension
void crucial(const char *format,...)
Parameters_Force_F_CloverTerm()
std::string m_repr
gamma matrix representation
void tensorProd_Field_F(Field_G &u, const Field_F &v1, const Field_F &v2)
void lower(Field_G &, const Field_G &, const int mu, const int nu)
constructs lower staple in mu-nu plane.
static bool Register(const std::string &realm, const creator_callback &cb)
Fopr_CloverTerm * m_fopr_csw
fermion operator
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Core implemetation of clover force calculation.
void Register_double(const string &, const double)
Methods to shift a field in the lexical site index.
double m_cSW
clover coefficient
void setpart_ex(int ex, const Field &w, int exw)
int fetch_double(const string &key, double &val) const
string get_string(const string &key) const
Field_G * m_Cud
for force calculation
void upper(Field_G &, const Field_G &, const int mu, const int nu)
constructs upper staple in mu-nu plane.
static VerboseLevel set_verbose_level(const std::string &str)
int fetch_int_vector(const string &key, std::vector< int > &val) const
void forward(Field &, const Field &, const int mu)
static const std::string class_name