Go to the documentation of this file.
18 #ifdef USE_FACTORY_AUTOREGISTER
20 bool init = GaugeFixing_Landau::register_factory();
35 int Niter, Nnaive, Nmeas, Nreset;
39 err += params.
fetch_int(
"maximum_number_of_iteration", Niter);
40 err += params.
fetch_int(
"number_of_naive_iteration", Nnaive);
41 err += params.
fetch_int(
"interval_of_measurement", Nmeas);
42 err += params.
fetch_int(
"iteration_to_reset", Nreset);
43 err += params.
fetch_double(
"convergence_criterion_squared", Enorm);
44 err += params.
fetch_double(
"overrelaxation_parameter", wp);
71 const int Nmeas,
const int Nreset,
72 const double Enorm,
const double wp)
110 const int Nvol = Uorg.
nvol();
111 const int Nex = Uorg.
nex();
113 const int Nvol2 = Nvol / 2;
125 const double plaq = staple.
plaquette(Uorg);
131 for (
int iter = 0; iter <
m_Niter; ++iter) {
151 if (((iter %
m_Nreset) == 0) && (iter > 0)) {
173 const double plaq2 = staple.
plaquette(Ufix);
174 const double plaq_diff = fabs(plaq - plaq2);
179 if (plaq_diff > sqrt(
m_Enorm)) {
192 const int Nvol2 = Ue.
nvol();
199 for (
int ieo = 0; ieo < 2; ++ieo) {
208 for (
int site = 0; site < Nvol2; ++site) {
210 ut = Geo.
mat(site, 0);
224 const int Nvol = Geo.
nvol();
225 const int Nex = Geo.
nex();
229 for (
int ex = 0; ex < Nex; ++ex) {
230 for (
int site = 0; site < Nvol; ++site) {
241 const Field_G& Geo,
const int Ieo)
246 const int Nvol2 = Geo.
nvol();
252 for (
int mu = 0; mu < Ndim; ++mu) {
263 for (
int mu = 0; mu < Ndim; ++mu) {
283 const int Nvol2 = Ue.
nvol();
284 const int Nex = Ue.
nex();
289 for (
int ieo = 0; ieo < 2; ++ieo) {
292 double tsg = DLT.
norm2();
295 sg = sg / (Nex * Nc * 2 * Nvol2 * NPE);
297 for (
int mu = 0; mu < Nex; ++mu) {
298 for (
int site = 0; site < Nvol2; ++site) {
300 ut = Ue.
mat(site, mu);
303 ut = Uo.
mat(site, mu);
308 Fval = Fval / (Nex * 2 * Nvol2 * NPE);
317 const int Nvol2 = Ue.
nvol();
326 for (
int mu = 0; mu < Ndim; ++mu) {
337 for (
int mu = 0; mu < Ndim; ++mu) {
349 for (
int site = 0; site < Nvol2; ++site) {
351 u_tmp = DLT.
mat(site, 0);
364 const int Nvol2 = Ue.
nvol();
368 assert(Weo.
nex() == 1);
375 for (
int mu = 0; mu < Ndim; ++mu) {
383 for (
int site = 0; site < Nvol2; ++site) {
389 }
else if (Ieo == 1) {
390 for (
int mu = 0; mu < Ndim; ++mu) {
398 for (
int site = 0; site < Nvol2; ++site) {
416 const int Nvol2 = G0.
nvol();
424 for (
int site = 0; site < Nvol2; ++site) {
428 for (
int imt = 0; imt < Nmt; ++imt) {
440 const int Nvol2 = W.
nvol();
442 for (
int site = 0; site < Nvol2; ++site) {
453 double fn1 = (wt.
r(0) + wt.
r(4)) * (wt.
r(0) + wt.
r(4))
454 + (wt.
i(0) - wt.
i(4)) * (wt.
i(0) - wt.
i(4));
455 double fn2 = (wt.
r(1) - wt.
r(3)) * (wt.
r(1) - wt.
r(3))
456 + (wt.
i(1) + wt.
i(3)) * (wt.
i(1) + wt.
i(3));
457 double fn = 1.0 / sqrt(fn1 + fn2);
459 gt.
set(0, fn * (wt.
r(0) + wt.
r(4)), fn * (-wt.
i(0) + wt.
i(4)));
460 gt.
set(1, fn * (-wt.
r(1) + wt.
r(3)), fn * (-wt.
i(1) - wt.
i(3)));
461 gt.
set(3, fn * (wt.
r(1) - wt.
r(3)), fn * (-wt.
i(1) - wt.
i(3)));
462 gt.
set(4, fn * (wt.
r(0) + wt.
r(4)), fn * (wt.
i(0) - wt.
i(4)));
469 gt2 = G.
mat(site, 0);
480 const int Nvol2 = W.
nvol();
482 for (
int site = 0; site < Nvol2; ++site) {
493 double fn1 = (wt.
r(8) + wt.
r(0)) * (wt.
r(8) + wt.
r(0))
494 + (wt.
i(8) - wt.
i(0)) * (wt.
i(8) - wt.
i(0));
495 double fn2 = (wt.
r(2) - wt.
r(6)) * (wt.
r(2) - wt.
r(6))
496 + (wt.
i(2) + wt.
i(6)) * (wt.
i(2) + wt.
i(6));
497 double fn = 1.0 / sqrt(fn1 + fn2);
499 gt.
set(0, fn * (wt.
r(8) + wt.
r(0)), fn * (wt.
i(8) - wt.
i(0)));
500 gt.
set(2, fn * (wt.
r(6) - wt.
r(2)), fn * (-wt.
i(6) - wt.
i(2)));
501 gt.
set(6, fn * (-wt.
r(6) + wt.
r(2)), fn * (-wt.
i(6) - wt.
i(2)));
502 gt.
set(8, fn * (wt.
r(8) + wt.
r(0)), fn * (-wt.
i(8) + wt.
i(0)));
509 gt2 = G.
mat(site, 0);
520 const int Nvol2 = W.
nvol();
524 for (
int site = 0; site < Nvol2; ++site) {
535 double fn1 = (wt.
r(4) + wt.
r(8)) * (wt.
r(4) + wt.
r(8))
536 + (wt.
i(4) - wt.
i(8)) * (wt.
i(4) - wt.
i(8));
537 double fn2 = (wt.
r(7) - wt.
r(5)) * (wt.
r(7) - wt.
r(5))
538 + (wt.
i(7) + wt.
i(5)) * (wt.
i(7) + wt.
i(5));
539 double fn = 1.0 / sqrt(fn1 + fn2);
541 gt.
set(4, fn * (wt.
r(4) + wt.
r(8)), fn * (-wt.
i(4) + wt.
i(8)));
542 gt.
set(5, fn * (-wt.
r(5) + wt.
r(7)), fn * (-wt.
i(5) - wt.
i(7)));
543 gt.
set(7, fn * (wt.
r(5) - wt.
r(7)), fn * (-wt.
i(5) - wt.
i(7)));
544 gt.
set(8, fn * (wt.
r(4) + wt.
r(8)), fn * (wt.
i(4) - wt.
i(8)));
551 gt2 = G.
mat(site, 0);
void fix(Field_G &Ufix, const Field_G &Uorg)
void calc_SG(double &sg, double &Fval, const Field_G &Ue, const Field_G &Uo)
void gfix_step(Field_G &Ue, Field_G &Uo, const double wp)
one step of gauge fixing with overrelaxation parameter wp.
void forward_h(Field &, const Field &, const int mu, const int ieo)
void gauge_trans_eo(Field_G &Ue, Field_G &Uo, const Field_G &Geo, const int Ieo)
void setpart_ex(int ex, const Field &w, int exw)
void set_string(const string &key, const string &value)
void set(const int jin, const int site, const int jex, double v)
Mat_SU_N mat_dag(const int site, const int mn=0) const
double plaquette(const Field_G &)
calculates plaquette value.
void maxTr2(Field_G &, Field_G &)
void set_double(const string &key, const double value)
void maxTr(Field_G &, Field_G &)
void detailed(const char *format,...)
void set_mat(const int site, const int mn, const Mat_SU_N &U)
void add_mat(const int site, const int mn, const Mat_SU_N &U)
static const std::string class_name
int non_negative(const int v)
void maxTr1(Field_G &, Field_G &)
void reverseField(Field &lex, const Field &eo)
void set(int c, const double &re, const double &im)
void maxTr3(Field_G &, Field_G &)
void calc_DLT(Field_G &Weo, const Field_G &Ue, const Field_G &Uo, const int Ieo)
static int reduce_sum(int count, dcomplex *recv_buf, dcomplex *send_buf, int pattern=0)
make a global sum of an array of dcomplex over the communicator. pattern specifies the dimensions to ...
void addpart_ex(int ex, const Field &w, int exw)
void convertField(Field &eo, const Field &lex)
void backward_h(Field &, const Field &, const int mu, const int ieo)
int square_non_zero(const double v)
void get_parameters(Parameters ¶ms) const
Mat_SU_N & at()
antihermitian traceless
void set_parameters(const Parameters ¶ms)
Bridge::VerboseLevel m_vl
Mat_SU_N & set_random(RandomNumbers *rand)
static VerboseLevel set_verbose_level(const std::string &str)
void mult_Field_Gnn(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
int non_zero(const double v)
void set_int(const string &key, const int value)
void scal(Field &x, const double a)
scal(x, a): x = a * x
int fetch_string(const string &key, string &value) const
int fetch_double(const string &key, double &value) const
void set_randomGaugeTrans(Field_G &Geo)
void crucial(const char *format,...)
double ReTr(const Mat_SU_N &m)
Mat_SU_N mat(const int site, const int mn=0) const
int fetch_int(const string &key, int &value) const
void general(const char *format,...)
void calc_W(Field_G &Weo, const Field_G &Ue, const Field_G &Uo, const int Ieo)
void mult_Field_Gnd(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
static std::string get_verbose_level(const VerboseLevel vl)