16 #ifdef USE_PARAMETERS_FACTORY
49 #ifdef USE_PARAMETERS_FACTORY
64 const string str_vlevel = params.
get_string(
"verbose_level");
69 std::vector<double> phi, phipr, pomega;
88 std::vector<double>& pomega)
104 assert(phi.size() == 3);
105 assert(phipr.size() == 3);
106 assert(pomega.size() == 3);
116 double c0r, c0i, c1r, c1i, c2r, c2i;
118 c0r = cos(phi[0] /
Lx);
119 c0i = sin(phi[0] /
Lx);
120 c1r = cos(phi[1] /
Lx);
121 c1i = sin(phi[1] /
Lx);
122 c2r = cos(phi[2] /
Lx);
123 c2i = sin(phi[2] /
Lx);
126 wk.
set(0, 0, c0r, c0i);
127 wk.
set(1, 1, c1r, c1i);
128 wk.
set(2, 2, c2r, c2i);
130 c0r = cos(phipr[0] /
Lx);
131 c0i = sin(phipr[0] /
Lx);
132 c1r = cos(phipr[1] /
Lx);
133 c1i = sin(phipr[1] /
Lx);
134 c2r = cos(phipr[2] /
Lx);
135 c2i = sin(phipr[2] /
Lx);
170 double c0r, c0i, c1r, c1i, c2r, c2i;
172 c0r = cos(phi[0] /
Lx);
173 c0i = sin(phi[0] /
Lx);
174 c1r = cos(phi[1] /
Lx);
175 c1i = sin(phi[1] /
Lx);
176 c2r = cos(phi[2] /
Lx);
177 c2i = sin(phi[2] /
Lx);
179 wk.
set(0, 0, c0r, c0i);
180 wk.
set(1, 1, c1r, c1i);
181 wk.
set(2, 2, c2r, c2i);
183 c0r = cos(phipr[0] /
Lx);
184 c0i = sin(phipr[0] /
Lx);
185 c1r = cos(phipr[1] /
Lx);
186 c1i = sin(phipr[1] /
Lx);
187 c2r = cos(phipr[2] /
Lx);
188 c2i = sin(phipr[2] /
Lx);
263 for (
int nu = 0; nu <
Ndim - 1; nu++) {
264 upper(staple, U, 3, nu);
266 for (
int z = 0; z <
Nz; z++) {
267 for (
int y = 0; y <
Ny; y++) {
268 for (
int x = 0; x <
Nx; x++) {
316 vout.
general(
m_vl,
"SF_delSg_plaq, from 0, from T = %.8f %.8f %.8f\n", plaq, plaqt0, plaqtT);
447 for (
int mu = 0; mu <
Ndim - 1; mu++) {
471 upper(Cup2, m_U, nu, mu);
477 for (
int z = 0; z <
Nz; z++) {
478 for (
int y = 0; y <
Ny; y++) {
479 for (
int x = 0; x <
Nx; x++) {
486 wmat = cmat * Unu.
mat_dag(site);
490 wmat = cmat * Unu.
mat_dag(site);
491 rect02 +=
ReTr(
wk * wmat);
498 cmat = Unu.
mat(site) * wmat;
502 cmat = Unu.
mat(site) * wmat;
516 upper(Cup1, m_U, mu, nu);
520 for (
int z = 0; z <
Nz; z++) {
521 for (
int y = 0; y <
Ny; y++) {
522 for (
int x = 0; x <
Nx; x++) {
528 cmat = Unu.
mat(site) * wmat;
529 wmat =
wk * cmat.
dag();
543 lower(Cdn1, m_U, mu, nu);
546 for (
int z = 0; z <
Nz; z++) {
547 for (
int y = 0; y <
Ny; y++) {
548 for (
int x = 0; x <
Nx; x++) {
555 wmat = cmat * Cdn1.mat_dag(site);
556 rectt3 +=
ReTr(Unu.
mat(site) * wmat);
575 rect = -rect01 - rect02 - rect03 + rectt1 + rectt2 + rectt3;
577 vout.
general(
m_vl,
"SF_delSg_rect, at 01, 02, 03, at T1, T2, T3 = %.8f %.8f %.8f %.8f %.8f %.8f %.8f\n",
578 rect, rect01, rect02, rect03, rectt1, rectt2, rectt3);
644 upper(staple, U, 0, 1);
645 for (
int site = 0; site <
Nvol; site++) {
649 upper(staple, U, 1, 2);
650 for (
int site = 0; site <
Nvol; site++) {
654 upper(staple, U, 2, 0);
655 for (
int site = 0; site <
Nvol; site++) {
685 for (
int nu = 0; nu <
Ndim - 1; nu++) {
686 lower(staple, U, 3, nu);
688 for (
int site = 0; site <
Nvol; site++) {
725 for (
int nu = 0; nu <
Ndim - 1; nu++) {
726 lower(staple, U, 3, nu);
734 for (
int site = 0; site <
Nvol; site++) {
774 for (
int nu = 0; nu <
Ndim; nu++) {
776 upper(c_tmp, U, mu, nu);
778 lower(c_tmp, U, mu, nu);
811 for (
int nu = 0; nu <
Ndim; nu++) {
813 upper(staple_upper, U, mu, nu);
814 lower(staple_lower, U, mu, nu);
833 axpy(W, 1.0, staple_upper);
834 axpy(W, 1.0, staple_lower);
952 double plaq2 = plaq + 3 * 3 *
Lx *
Ly *
Lz;
955 plaq / (3 *
Lx *
Ly * Lz * (6 *
Lt - 3)));
957 plaq2 / (3 * 6 *
Lx *
Ly * Lz *
Lt));
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 Register_string(const string &, const string &)
double sf_coupling_plaq(const Field_G &, double ct)
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)
void set_parameters(const Parameters ¶ms)
int site(const int &x, const int &y, const int &z, const int &t) const
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 general(const char *format,...)
double sf_coupling_rect(const Field_G &, double ctr)
static int ipe(const int dir)
logical coordinate of current proc.
double plaq_s(const Field_G &)
Bridge::VerboseLevel m_vl
void mult_ct_boundary(int t, double ct)
Multiply the boundary improvement factor ct or ctr to an SU(N) matrix object which belongs to a site ...
void staple_ct(Field_G &, const Field_G &, const int, double ct)
static const std::string class_name
void mult_Field_Gnd(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
void set_boundary_wk(const Mat_SU_N &U)
Set the boundary spatial link at t=0 for SF bc.
void mult_Field_Gnn(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
double plaq_t_ct(const Field_G &, double ct)
void backward(Field &, const Field &, const int mu)
double plaq_t(const Field_G &)
void print_plaquette(const Field_G &)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void crucial(const char *format,...)
double plaquette(const Field_G &)
static bool Register(const std::string &realm, const creator_callback &cb)
void Register_double_vector(const string &, const std::vector< double > &)
void lower(Field_G_SF &, const Field_G &, const int, const int)
Mat_SU_N mat_dag(const int site, const int mn=0) const
int fetch_double_vector(const string &key, std::vector< double > &val) 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...
double plaquette_ct(const Field_G &, double ct)
void set(int c, double re, const double &im)
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 staple(Field_G &, const Field_G &, const int)