16 #ifdef USE_PARAMETERS_FACTORY
50 #ifdef USE_PARAMETERS_FACTORY
65 const string str_vlevel = params.
get_string(
"verbose_level");
70 valarray<double> phi, phipr, pomega;
89 valarray<double>& pomega)
105 assert(phi.size() == 3);
106 assert(phipr.size() == 3);
107 assert(pomega.size() == 3);
117 double c0r, c0i, c1r, c1i, c2r, c2i;
119 c0r = cos(phi[0] /
Lx);
120 c0i = sin(phi[0] /
Lx);
121 c1r = cos(phi[1] /
Lx);
122 c1i = sin(phi[1] /
Lx);
123 c2r = cos(phi[2] /
Lx);
124 c2i = sin(phi[2] /
Lx);
127 wk.
set(0, 0, c0r, c0i);
128 wk.
set(1, 1, c1r, c1i);
129 wk.
set(2, 2, c2r, c2i);
131 c0r = cos(phipr[0] /
Lx);
132 c0i = sin(phipr[0] /
Lx);
133 c1r = cos(phipr[1] /
Lx);
134 c1i = sin(phipr[1] /
Lx);
135 c2r = cos(phipr[2] /
Lx);
136 c2i = sin(phipr[2] /
Lx);
171 double c0r, c0i, c1r, c1i, c2r, c2i;
173 c0r = cos(phi[0] /
Lx);
174 c0i = sin(phi[0] /
Lx);
175 c1r = cos(phi[1] /
Lx);
176 c1i = sin(phi[1] /
Lx);
177 c2r = cos(phi[2] /
Lx);
178 c2i = sin(phi[2] /
Lx);
180 wk.
set(0, 0, c0r, c0i);
181 wk.
set(1, 1, c1r, c1i);
182 wk.
set(2, 2, c2r, c2i);
184 c0r = cos(phipr[0] /
Lx);
185 c0i = sin(phipr[0] /
Lx);
186 c1r = cos(phipr[1] /
Lx);
187 c1i = sin(phipr[1] /
Lx);
188 c2r = cos(phipr[2] /
Lx);
189 c2i = sin(phipr[2] /
Lx);
264 for (
int nu = 0; nu <
Ndim - 1; nu++) {
265 staple =
upper(U, 3, nu);
267 for (
int z = 0; z <
Nz; z++) {
268 for (
int y = 0; y <
Ny; y++) {
269 for (
int x = 0; x <
Nx; x++) {
317 vout.
general(
m_vl,
"SF_delSg_plaq, from 0, from T = %.8f %.8f %.8f\n", plaq, plaqt0, plaqtT);
448 for (
int mu = 0; mu <
Ndim - 1; mu++) {
472 Cup2 =
upper(m_U, nu, mu);
478 for (
int z = 0; z <
Nz; z++) {
479 for (
int y = 0; y <
Ny; y++) {
480 for (
int x = 0; x <
Nx; x++) {
487 wmat = cmat * Unu.
mat_dag(site);
491 wmat = cmat * Unu.
mat_dag(site);
492 rect02 +=
ReTr(
wk * wmat);
499 cmat = Unu.
mat(site) * wmat;
503 cmat = Unu.
mat(site) * wmat;
517 Cup1 =
upper(m_U, mu, nu);
521 for (
int z = 0; z <
Nz; z++) {
522 for (
int y = 0; y <
Ny; y++) {
523 for (
int x = 0; x <
Nx; x++) {
529 cmat = Unu.
mat(site) * wmat;
530 wmat =
wk * cmat.
dag();
544 Cdn1 =
lower(m_U, mu, nu);
547 for (
int z = 0; z <
Nz; z++) {
548 for (
int y = 0; y <
Ny; y++) {
549 for (
int x = 0; x <
Nx; x++) {
556 wmat = cmat * Cdn1.mat_dag(site);
557 rectt3 +=
ReTr(Unu.
mat(site) * wmat);
576 rect = -rect01 - rect02 - rect03 + rectt1 + rectt2 + rectt3;
578 vout.
general(
m_vl,
"SF_delSg_rect, at 01, 02, 03, at T1, T2, T3 = %.8f %.8f %.8f %.8f %.8f %.8f %.8f\n",
579 rect, rect01, rect02, rect03, rectt1, rectt2, rectt3);
645 staple =
upper(U, 0, 1);
647 for (
int site = 0; site <
Nvol; site++) {
651 staple =
upper(U, 1, 2);
653 for (
int site = 0; site <
Nvol; site++) {
657 staple =
upper(U, 2, 0);
659 for (
int site = 0; site <
Nvol; site++) {
690 for (
int nu = 0; nu <
Ndim - 1; nu++) {
691 staple =
lower(U, 3, nu);
693 for (
int site = 0; site <
Nvol; site++) {
731 for (
int nu = 0; nu <
Ndim - 1; nu++) {
732 staple =
lower(U, 3, nu);
740 for (
int site = 0; site <
Nvol; site++) {
780 for (
int nu = 0; nu <
Ndim; nu++) {
782 W +=
upper(U, mu, nu);
783 W +=
lower(U, mu, nu);
815 for (
int nu = 0; nu <
Ndim; nu++) {
817 staple_upper =
upper(U, mu, nu);
818 staple_lower =
lower(U, mu, nu);
962 double plaq2 = plaq + 3 * 3 *
Lx *
Ly *
Lz;
965 plaq / (3 *
Lx *
Ly * Lz * (6 *
Lt - 3)));
967 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_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
int fetch_double_vector(const string &key, std::valarray< double > &val) const
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 crucial(const char *format,...)
double plaquette(const Field_G &)
static bool Register(const std::string &realm, const creator_callback &cb)
Mat_SU_N mat_dag(const int site, const int mn=0) const
void Register_double_vector(const string &, const std::valarray< double > &)
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)
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)
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)