5 #error "Converted but not tested"
8 #include "meas/pbp/ovpbg5p_w.h"
38 const multi1d<Real>&
Mass,
40 const multi1d<Real>&
RsdCG,
47 const int numMass =
Mass.size();
49 multi1d<Double>
TrDinv(numMass);
51 multi1d<Double> TrDinv_sq(numMass);
52 multi1d<Double> TrBdag_Eta(numMass);
53 multi1d<Double> TrEtadag_Eta(numMass);
54 multi1d<Double> TrBdag_Eta_avg(numMass);
55 multi1d<Double> TrEtadag_Eta_avg(numMass);
56 multi2d<LatticeFermion>
eta(Nsubl, numMass);
79 S_f.getFermBC().modifyF(
b);
86 LatticeFermion
tmp = chiralProjectMinus(
b);
92 LatticeFermion
tmp = chiralProjectPlus(
b);
122 for(
int i=0;
i < numMass; ++
i)
124 TrBdag_Eta[
i] += real(innerProductReal(
b,
eta[
i]));
125 TrEtadag_Eta[
i] += norm2(
eta[
i]);
129 TrBdag_B_avg += TrBdag_B;
130 TrBdag_Eta_avg += TrBdag_Eta;
131 TrEtadag_Eta_avg += TrEtadag_Eta;
137 for(
int i=0;
i < numMass; ++
i)
145 push(xml_out,
"Overlap_trace_hit");
148 write(xml_out,
"TrBdag_B", TrBdag_B);
149 write(xml_out,
"TrBdag_Eta", TrBdag_Eta);
150 write(xml_out,
"TrEtadag_Eta", TrEtadag_Eta);
159 TrBdag_B_avg *= TrBdag_B_avg;
160 for(
int i=0;
i < numMass; ++
i)
177 for(
int i=0;
i < numMass; ++
i)
181 ddummy2 = TrBdag_Eta_avg[
i] - TrBdag_B_avg;
187 ddummy2 = TrEtadag_Eta_avg[
i] - 2.0*TrBdag_Eta_avg[
i] + TrBdag_B_avg;
192 push(xml_out,
"Overlap_trace_avg");
194 write(xml_out,
"TrBdag_B_avg", TrBdag_B_avg);
195 write(xml_out,
"TrBdag_Eta_avg", TrBdag_Eta_avg);
196 write(xml_out,
"TrEtadag_Eta_avg", TrEtadag_Eta_avg);
199 write(xml_out,
"TrDinv_sq", TrDinv_sq);
Primary include file for CHROMA library code.
Class for counted reference semantics.
Base class for unpreconditioned overlap-like fermion actions.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Asqtad Staggered-Dirac operator.
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > enum InvType invType const multi1d< Real > & RsdCG
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > & Mass
push(xml_out,"Condensates")
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > enum InvType invType const multi1d< Real > int MaxCG
void OvPbg5p(XMLWriter &xml_out, const OverlapFermActBase &S_f, Handle< const ConnectState > state, const multi1d< Real > &Mass, enum InvType invType, const multi1d< Real > &RsdCG, int MaxCG, int n_zero, int nhit)
OVPBG5P - Calculates noise estimator for the overlap trace.
multi1d< Double > TrHinv_sq(numMass)
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
multi1d< Double > TrDinv(numMass)
const WilsonTypeFermAct< multi1d< LatticeFermion > > & S_f
FloatingPoint< double > Double