5 #error "THIS CODE IS NOT YET READY"
8 #include "meas/smear/wupp_smear.h"
26 void gausSmear(
const multi1d<LatticeColorMatrix>&
u,
28 const Real& width,
int ItrGaus,
int j_decay)
32 Real ftmp = - (width*width) / Real(4*ItrGaus);
35 Real ftmpi = Real(1) / ftmp;
37 for(
int n = 0;
n < ItrGaus; ++
n)
59 void gausSmear(
const multi1d<LatticeColorMatrix>&
u,
60 LatticeColorVector&
chi,
61 const Real& width,
int ItrGaus,
int j_decay)
63 gausSmear<LatticeColorVector>(
u,
chi, width, ItrGaus,
j_decay);
78 LatticeColorVector&
chi,
79 const Real& mass_sq,
int ItrMax,
int j_decay,
const Real&
RsdCG)
83 LatticeColorVector ap;
86 LatticeInteger t_coord;
87 LatticeBoolean t_mask;
89 multi1d<Real>
zero(length);
90 multi1d<Real> ab(length);
91 multi1d<Double>
c(length);
92 multi1d<Double>
d(length);
93 multi1d<Double> dd(length);
95 multi1d<Double>
cp(length);
101 multi1d<Boolean> is_zero(length);
118 for(
cb = 0;
cb < Nsubl;
cb++)
123 FILL(any_zero,FALSE);
124 for(
t = 0;
t < length;
t++)
125 any_zero = any_zero | is_zero[
t];
134 for(
t = 0;
t < length;
t++)
140 t_coord = Layout::latticeCoordinate(
j_decay);
142 for(
k = 1;
k <= ItrMax;
k++)
151 apa = real(trace(adj[
p[0]] * ap[0]))
152 tmp = real(trace(adj[
p[1]] * ap[1]))
155 d = sumMulti(apa, timeslice)
165 for(
t = 0;
t < length;
t++)
169 t_mask = t_coord ==
t;
172 for(
cb = 0;
cb < Nsubl;
cb++)
175 for(
cb = 0;
cb < Nsubl;
cb++)
176 r[
cb] -= ap[
cb] * apa;
180 for(
cb = 0;
cb < Nsubl;
cb++)
184 for(
t = 0;
t < length;
t++)
193 if( converged == length )
195 push(xml_out,
"Wupp_smear_needed");
210 for(
t = 0;
t < length;
t++)
214 t_mask = t_coord ==
t;
217 for(
cb = 0;
cb < Nsubl;
cb++)
224 push(xml_out,
"Wupp_smear_not_converged");
Primary include file for CHROMA library code.
void klein_gord(const multi1d< LatticeColorMatrix > &u, const T &psi, T &chi, const Real &mass_sq, int j_decay)
Compute the covariant Klein-Gordon operator.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void gausSmear(const multi1d< LatticeColorMatrix > &u, T &chi, const Real &width, int ItrGaus, int j_decay)
Do a covariant Gaussian smearing of a lattice field.
Asqtad Staggered-Dirac operator.
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > enum InvType invType const multi1d< Real > & RsdCG
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
multi1d< LatticeFermion > chi(Ncb)
void wuppSmear(const multi1d< LatticeColorMatrix > &u, LatticeColorVector &chi, const Real &mass_sq, int ItrMax, int j_decay, const Real &RsdCG)
Do a covariant Wuppertal smearing of a color std::vector field.
copymask(lcoord, lbit, ltmp_1, REPLACE)
Fourier transform phase factor support.