16 #ifdef USE_PARAMETERS_FACTORY
35 #ifdef USE_PARAMETERS_FACTORY
50 const string str_vlevel = params.
get_string(
"verbose_level");
57 std::vector<double> phi, phipr;
78 double *phi,
double *phipr)
86 for (
int mu = 0; mu < Ndim; ++mu) {
99 assert(bc.size() == Ndim);
106 for (
int i = 0; i < 3; ++i) {
112 for (
int mu = 0; mu < Ndim; ++mu) {
141 axpy(force, 1.0, force1);
176 Field_G force1(Nvol, 1), force2(Nvol, 1);
177 Field_G Umu(Nvol, 1), Unu(Nvol, 1), Utmp(Nvol, 1), Utmp2(Nvol, 1);
178 Field_F vt1(Nvol, 1), vt2(Nvol, 1), vt3(Nvol, 1), vt4(Nvol, 1);
185 Field_F eta2(Nvol, 1), eta3(Nvol, 1);
196 for (
int mu = 0; mu < Ndim; ++mu) {
197 for (
int nu = 0; nu < Ndim; ++nu) {
198 if (nu == mu)
continue;
202 Umu.setpart_ex(0, *
m_U, mu);
203 Unu.setpart_ex(0, *
m_U, nu);
212 copy(force2, force1);
223 axpy(force2, 1.0, force1);
230 axpy(force2, 1.0, force1);
240 axpy(force2, 1.0, force1);
251 axpy(force2, -1.0, force1);
261 axpy(force2, -1.0, force1);
284 for (
int mu = 0; mu <
m_Ndim; ++mu) {
285 for (
int nu = 0; nu <
m_Ndim; ++nu) {
286 if (nu == mu)
continue;
288 staple.
upper(Cmu_ud1, *
m_U, mu, nu);
289 staple.
lower(Cmu_ud2, *
m_U, mu, nu);
290 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)
double m_phi[3]
SF boundary condition at t=0.
void set_boundary_wkpr(const Mat_SU_N &U)
Set the boundary spatial link at t=Nt-1 for SF bc.
void Register_string(const string &, const string &)
std::vector< int > m_boundary
boundary conditions
void set(const int jin, const int site, const int jex, double v)
void upper(Field_G_SF &, const Field_G &, const int, const int)
double m_cSW
clover coefficient
void set_parameters(const Parameters ¶ms)
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Core implemetation of clover force calculation.
Field_F_SF set_zero
In order to set the boundary field.
void set_mode(std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
void general(const char *format,...)
Bridge::VerboseLevel m_vl
Parameters_Force_F_Clover_SF()
Container of Field-type object.
void force_udiv(Field &force, const Field &eta)
For recursive calculation of smeared force.
Fopr_Clover_SF * m_fopr_c
void copy(Field &y, const Field &x)
copy(y, x): y = x
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
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)
void mult_isigma(Field_F &, const Field_F &, const int mu, const int nu)
double m_phipr[3]
SF boundary condition at t=Nt.
Wilson-type fermion field.
void set_boundary_spatial_link_zero()
Set the boundary spatial link to 0 for SF bc.
void set_boundary_wk(const Mat_SU_N &U)
Set the boundary spatial link at t=0 for SF bc.
void backward(Field &, const Field &, const int mu)
void mult_gm5(Field &v, const Field &w)
static const std::string class_name
int index_dir(int mu, int nu)
void mult_Field_Gn(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
double m_kappa
hopping parameter
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void crucial(const char *format,...)
void set_parameters(const Parameters_Field_G_SF ¶ms)
Set the parameter with Parameters_Field_G_SF class.
void mult(Field &v, const Field &f)
multiplies fermion operator to a given field (2nd argument)
void tensorProd_Field_F(Field_G &u, const Field_F &v1, const Field_F &v2)
void set_parameters(const Parameters ¶ms)
Field_G * m_Cud
for force calculation
static bool Register(const std::string &realm, const creator_callback &cb)
void set_boundary_zero(Field &f)
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
void Register_double_vector(const string &, const std::vector< double > &)
void set_parameters(const Parameters ¶ms)
void lower(Field_G_SF &, const Field_G &, const int, const int)
int fetch_double_vector(const string &key, std::vector< double > &val) const
Force_F_Wilson_SF * m_force_w
void Register_double(const string &, const double)
Methods to shift a field in the lexical site index.
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
static VerboseLevel set_verbose_level(const std::string &str)
void set_parameters(const Parameters ¶ms)
int fetch_int_vector(const string &key, std::vector< int > &val) const
void set_component()
Set building components for force calculation.
void forward(Field &, const Field &, const int mu)