15 static Real
xi_0() {
return 1.0;}
39 int j_decay,
const Real& GFAccu,
int GFMax,
40 bool OrDo,
const Real& OrPara)
69 LatticeColorMatrix& g,
71 int j_decay,
const Real& GFAccu,
int GFMax,
72 bool OrDo,
const Real& OrPara)
84 Real xi_sq = pow(
xi_0(),2);
133 tgfold = (xi_sq*tgf_t+tgf_s)/
norm;
134 tgf_s = tgf_s/(
Double(Layout::vol()*Nc*num_sdir));
135 tgf_t = tgf_t/(
Double(Layout::vol()*Nc));
139 tgf_s = tgf_s/(
Double(Layout::vol()*Nc*num_sdir));
148 bool wrswitch =
true;
151 while( toBool(conver > GFAccu) && n_gf < GFMax )
154 if( GFMax - n_gf < 11 )
196 tgfnew = (xi_sq*tgf_t+tgf_s)/
norm;
197 tgf_s = tgf_s/(
Double(Layout::vol()*Nc*num_sdir));
198 tgf_t = tgf_t/(
Double(Layout::vol()*Nc));
202 tgf_s = tgf_s/(
Double(Layout::vol()*Nc*num_sdir));
207 QDPIO::cout <<
"COULGAUGE: iter= " << n_gf
208 <<
" tgfold= " << tgfold
209 <<
" tgfnew= " << tgfnew
210 <<
" tgf_s= " << tgf_s
211 <<
" tgf_t= " << tgf_t << std::endl;
214 conver = fabs((tgfnew - tgfold) / tgfnew);
220 QDPIO::cout <<
"COULGAUGE: end: iter= " << n_gf
221 <<
" tgfold= " << tgfold
222 <<
" tgf_s= " << tgf_s
223 <<
" tgf_t= " << tgf_t << std::endl;
228 LatticeColorMatrix u_tmp = g *
u[
mu];
234 XMLBufferWriter xml_out;
235 push(xml_out,
"Final_trace_max_in_CoulGauge");
238 write(xml_out,
"n_gf",n_gf);
239 write(xml_out,
"tgfold", tgfold);
240 write(xml_out,
"tgf_s", tgf_s);
241 write(xml_out,
"tgf_t", tgf_t);
Primary include file for CHROMA library code.
Coulomb (and Landau) gauge fixing.
Perform a single gauge fixing iteration.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void coulGauge(multi1d< LatticeColorMatrix > &u, int &n_gf, int j_decay, const Real &GFAccu, int GFMax, bool OrDo, const Real &OrPara)
Coulomb (and Landau) gauge fixing.
void grelax(LatticeColorMatrix &g, const multi1d< LatticeColorMatrix > &u, int j_decay, int su2_index, int cb, bool ordo, const Real &orpara)
Perform a single gauge fixing iteration.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void reunit(LatticeColorMatrixF3 &xa)
FloatingPoint< double > Double
Reunitarize in place a color matrix to SU(N)