16 #ifdef USE_PARAMETERS_FACTORY
36 #ifdef USE_PARAMETERS_FACTORY
51 const string str_vlevel = params.
get_string(
"verbose_level");
58 valarray<double> phi, phipr;
79 double *phi,
double *phipr)
87 for (
int mu = 0; mu < Ndim; ++mu) {
100 assert(bc.size() == Ndim);
107 for (
int i = 0; i < 3; ++i) {
113 for (
int mu = 0; mu < Ndim; ++mu) {
182 Field_G force1(Nvol, 1), force2(Nvol, 1);
183 Field_G Umu(Nvol, 1), Unu(Nvol, 1), Utmp(Nvol, 1), Utmp2(Nvol, 1);
184 Field_F vt1(Nvol, 1), vt2(Nvol, 1), vt3(Nvol, 1), vt4(Nvol, 1);
197 Field_F eta2(Nvol, 1), eta3(Nvol, 1);
201 for (
int mu = 0; mu < Ndim; ++mu) {
202 for (
int nu = 0; nu < Ndim; ++nu) {
203 if (nu == mu)
continue;
207 Umu.setpart_ex(0, *
m_U, mu);
208 Unu.setpart_ex(0, *
m_U, nu);
267 force2 *= -m_kappa *
m_cSW / 8.0;
287 for (
int mu = 0; mu <
m_Ndim; ++mu) {
288 for (
int nu = 0; nu <
m_Ndim; ++nu) {
289 if (nu == mu)
continue;
291 Cmu_ud = staple.
upper(*
m_U, mu, nu);
292 Cmu_ud -= staple.
lower(*
m_U, mu, nu);
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 &)
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
const Field mult(const Field &f)
multiplies fermion operator to a given field and returns the resultant field.
int fetch_int_vector(const string &key, std::valarray< int > &val) const
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.
int fetch_double_vector(const string &key, std::valarray< double > &val) const
void set_boundary_spatial_link_zero()
Set the boundary spatial link to 0 for SF bc.
std::valarray< int > m_boundary
boundary conditions
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)
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 crucial(const char *format,...)
void set_parameters(const Parameters_Field_G_SF ¶ms)
Set the parameter with Parameters_Field_G_SF class.
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 set_parameters(const Parameters ¶ms)
Force_F_Wilson_SF * m_force_w
void Register_double_vector(const string &, const std::valarray< double > &)
void Register_double(const string &, const double)
Methods to shift a field in the lexical site index.
void Register_int_vector(const string &, const std::valarray< int > &)
const Field mult_gm5(const Field &w)
Field_G_SF lower(const Field_G &, const int, const int)
void setpart_ex(int ex, const Field &w, int exw)
Field_G_SF upper(const Field_G &, const int, const int)
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)
void set_component()
Set building components for force calculation.
void forward(Field &, const Field &, const int mu)