16 #ifdef USE_FACTORY_AUTOREGISTER
18 bool init = Force_G_Rectangle_SF::register_factory();
27 const string str_vlevel = params.
get_string(
"verbose_level");
32 double beta, c_plaq, c_rect;
33 double ct0, ct1, ct2, ctr0, ctr1, ctr2;
34 std::vector<double> phi, phipr;
58 const double gg = 6.0 / beta;
60 const double ct = ct0 + ct1 * gg + ct2 * gg * gg;
61 const double ctr = ctr0 + ctr1 * gg + ctr2 * gg * gg;
83 double *phi,
double *phipr,
const double ct,
const double ctr)
117 double c0r = cos(phi[0] / Lx);
118 double c0i = sin(phi[0] / Lx);
119 double c1r = cos(phi[1] / Lx);
120 double c1i = sin(phi[1] / Lx);
121 double c2r = cos(phi[2] / Lx);
122 double c2i = sin(phi[2] / Lx);
128 c0r = cos(phipr[0] / Lx);
129 c0i = sin(phipr[0] / Lx);
130 c1r = cos(phipr[1] / Lx);
131 c1i = sin(phipr[1] / Lx);
132 c2r = cos(phipr[2] / Lx);
133 c2i = sin(phipr[2] / Lx);
207 assert(
m_U->
nex() == Ndim);
210 assert(force.
nvol() == Nvol);
211 assert(force.
nex() == Ndim);
216 for (
int mu = 0; mu < Ndim; ++mu) {
220 for (
int nu = 0; nu < Ndim; ++nu) {
221 if (nu == mu)
continue;
375 double Fave, Fmax, Fdev;
376 force.
stat(Fave, Fmax, Fdev);
SU(N) gauge field class in which a few functions are added for the SF.
void set_boundary_zero()
Set the boundary matrix to 0 for SF bc.
void set_boundary_wkpr(const Mat_SU_N &U)
Set the boundary spatial link at t=Nt-1 for SF bc.
int fetch_double_vector(const string &key, vector< double > &value) const
void set(const int jin, const int site, const int jex, double v)
static const std::string class_name
void general(const char *format,...)
Container of Field-type object.
int fetch_double(const string &key, double &value) const
void at_Field_G(Field_G &W, const int ex)
void mult_Field_Gdn(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
void set_parameters(const Parameters ¶ms)
static int ipe(const int dir)
logical coordinate of current proc.
void addpart_ex(int ex, const Field &w, int exw)
double m_ct
SF boundary improvement coefficient for the plaquatte action.
void set_parameters(const Parameters ¶ms)
void upper(Field_G_SF &, const Field_G &, const int, const int)
Bridge::VerboseLevel m_vl
void mult_ct_boundary(const int t, const double ct)
Multiply the boundary improvement factor ct or ctr to an SU(N) matrix object which belongs to a site ...
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)
Mat_SU_N m_wk
SF boundary condition.
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void mult_Field_Gnn(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
void crucial(const char *format,...)
void stat(double &Fave, double &Fmax, double &Fdev) const
determines the statistics of the field. average, maximum value, and deviation is determined over glob...
double m_ctr
SF boundary improvement coefficient for the rectangle action.
void set(int c, double re, const double &im)
void lower(Field_G_SF &, const Field_G &, const int, const int)
void setpart_ex(int ex, const Field &w, int exw)
string get_string(const string &key) const
static VerboseLevel set_verbose_level(const std::string &str)
void forward(Field &, const Field &, const int mu)
void mult_Field_Gnd(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)