37 const string str_vlevel = params.
get_string(
"verbose_level");
42 std::vector<double> phi, phipr, p_omega;
61 const std::vector<double>& p_omega)
77 assert(phi.size() == 3);
78 assert(phipr.size() == 3);
79 assert(p_omega.size() == 3);
91 double c0r = cos(phi[0] / Lx);
92 double c0i = sin(phi[0] / Lx);
93 double c1r = cos(phi[1] / Lx);
94 double c1i = sin(phi[1] / Lx);
95 double c2r = cos(phi[2] / Lx);
96 double c2i = sin(phi[2] / Lx);
103 c0r = cos(phipr[0] / Lx);
104 c0i = sin(phipr[0] / Lx);
105 c1r = cos(phipr[1] / Lx);
106 c1i = sin(phipr[1] / Lx);
107 c2r = cos(phipr[2] / Lx);
108 c2i = sin(phipr[2] / Lx);
145 double c0r = cos(phi[0] / Lx);
146 double c0i = sin(phi[0] / Lx);
147 double c1r = cos(phi[1] / Lx);
148 double c1i = sin(phi[1] / Lx);
149 double c2r = cos(phi[2] / Lx);
150 double c2i = sin(phi[2] / Lx);
157 c0r = cos(phipr[0] / Lx);
158 c0i = sin(phipr[0] / Lx);
159 c1r = cos(phipr[1] / Lx);
160 c1i = sin(phipr[1] / Lx);
161 c2r = cos(phipr[2] / Lx);
162 c2i = sin(phipr[2] / Lx);
244 for (
int nu = 0; nu < Ndim - 1; nu++) {
246 upper(staple, U, 3, nu);
248 for (
int z = 0; z < Nz; z++) {
249 for (
int y = 0; y < Ny; y++) {
250 for (
int x = 0; x < Nx; x++) {
301 vout.
general(
m_vl,
"SF_delSg_plaq, from 0, from T = %.8f %.8f %.8f\n", plaq, plaqt0, plaqtT);
435 for (
int mu = 0; mu < Ndim - 1; mu++) {
460 upper(Cup2, U, nu, mu);
474 for (
int z = 0; z < Nz; z++) {
475 for (
int y = 0; y < Ny; y++) {
476 for (
int x = 0; x < Nx; x++) {
487 wmat = cmat * Unu.
mat_dag(site);
492 wmat = cmat * Unu.
mat_dag(site);
506 cmat = Unu.
mat(site) * wmat;
510 wmat = m_wkpr * cmat;
511 cmat = Unu.
mat(site) * wmat;
526 upper(Cup1, U, mu, nu);
531 for (
int z = 0; z < Nz; z++) {
532 for (
int y = 0; y < Ny; y++) {
533 for (
int x = 0; x < Nx; x++) {
542 cmat = Unu.
mat(site) * wmat;
559 lower(Cdn1, U, mu, nu);
563 for (
int z = 0; z < Nz; z++) {
564 for (
int y = 0; y < Ny; y++) {
565 for (
int x = 0; x < Nx; x++) {
576 wmat = cmat * Cdn1.
mat_dag(site);
577 rectt3 +=
ReTr(Unu.
mat(site) * wmat);
597 double rect = -rect01 - rect02 - rect03 + rectt1 + rectt2 + rectt3;
599 vout.
general(
m_vl,
"SF_delSg_rect, at 01, 02, 03, at T1, T2, T3 = %.8f %.8f %.8f %.8f %.8f %.8f %.8f\n",
600 rect, rect01, rect02, rect03, rectt1, rectt2, rectt3);
668 upper(staple, U, 0, 1);
669 for (
int site = 0; site < Nvol; site++) {
673 upper(staple, U, 1, 2);
674 for (
int site = 0; site < Nvol; site++) {
678 upper(staple, U, 2, 0);
679 for (
int site = 0; site < Nvol; site++) {
712 for (
int nu = 0; nu < Ndim - 1; nu++) {
713 lower(staple, U, 3, nu);
715 for (
int site = 0; site < Nvol; site++) {
757 for (
int nu = 0; nu < Ndim - 1; nu++) {
758 lower(staple, U, 3, nu);
766 for (
int site = 0; site < Nvol; site++) {
808 for (
int nu = 0; nu < Ndim; nu++) {
812 upper(c_tmp, U, mu, nu);
815 lower(c_tmp, U, mu, nu);
850 for (
int nu = 0; nu < Ndim; nu++) {
855 upper(staple_upper, U, mu, nu);
856 lower(staple_lower, U, mu, nu);
878 axpy(W, 1.0, staple_upper);
879 axpy(W, 1.0, staple_lower);
982 const double plaq2 = plaq + 3 * 3 * Lx * Ly * Lz;
985 plaq / (3 * Lx * Ly * Lz * (6 * Lt - 3)));
987 plaq2 / (3 * 6 * Lx * Ly * Lz * Lt));
SU(N) gauge field class in which a few functions are added for the SF.
double sf_coupling_rect(const Field_G &, const double ctr)
static const std::string class_name
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.
void print_plaquette(const Field_G &)
int fetch_double_vector(const string &key, vector< double > &value) const
void set(const int jin, const int site, const int jex, double v)
int site(const int &x, const int &y, const int &z, const int &t) const
double plaquette_ct(const Field_G &, const double ct)
void general(const char *format,...)
Bridge::VerboseLevel m_vl
void mult_Field_Gdn(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
static int ipe(const int dir)
logical coordinate of current proc.
double plaq_t_ct(const Field_G &, const double ct)
double plaq_s(const Field_G &)
void set_parameters(const Parameters ¶ms)
void upper(Field_G_SF &, const Field_G &, const int, const int)
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)
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,...)
double plaq_t(const Field_G &)
void staple(Field_G &, const Field_G &, const int)
double sf_coupling_plaq(const Field_G &, const double ct)
Mat_SU_N mat_dag(const int site, const int mn=0) const
static int reduce_sum(int count, double *recv_buf, double *send_buf, int pattern=0)
make a global sum of an array of double over the communicator. pattern specifies the dimensions to be...
void staple_ct(Field_G &, const Field_G &, const int, const double ct)
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
Mat_SU_N mat(const int site, const int mn=0) const
static VerboseLevel set_verbose_level(const std::string &str)
double ReTr(const Mat_SU_N &m)
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)
double plaquette(const Field_G &)