25 XMLReader inputtop(xml, path);
34 read(inputtop,
"Cfg", input.
cfg);
38 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
44 int main(
int argc,
char **argv)
53 read(xml_in,
"/ovlapTest", input);
56 QDPIO::cerr <<
"Caught Exception : " << e << std::endl;
62 Layout::setLattSize(input.
param.nrow);
65 multi1d<LatticeColorMatrix>
u(
Nd);
66 XMLReader gauge_file_xml, gauge_xml;
70 push(xml_out,
"t_g5eps_bj");
74 MesPlq(xml_out,
"Observables",
u);
81 QDPIO::cout <<
"FERM_ACT_ZOLOTAREV_4D" << std::endl;
82 const Zolotarev4DFermActParams& zolo4d =
dynamic_cast<const Zolotarev4DFermActParams&
> (*(input.
param.FermActHandle));
86 Zolotarev4DFermAct S(fbc, zolo4d, xml_out);
101 LatticeFermion chi1, chi2,
tmp, g5_psi;
108 chi2 *= (Real(1) - input.
param.FermActHandle->getMass());
109 chi2 += (Real(1) + input.
param.FermActHandle->getMass())*
psi;
114 LatticeFermion diff = chi2 - chi1;
115 Double norm_diff = sqrt(norm2(diff));
117 QDPIO::cout <<
"||PLUS: lovlapms - explicit epsilon construct ||=" << norm_diff << std::endl;
121 g5_psi = Gamma(
G5)*
psi;
130 chi2 = Gamma(
G5)*
tmp;
131 chi2 *= (Real(1) - input.
param.FermActHandle->getMass());
132 chi2 += (Real(1) + input.
param.FermActHandle->getMass())*
psi;
136 norm_diff = sqrt(norm2(diff));
138 QDPIO::cout <<
"||MINUS: lovlapms - explicit epsilon construct ||=" << norm_diff << std::endl;
146 chi2 *= (Real(1) - input.
param.FermActHandle->getMass());
147 chi2 += (Real(1) + input.
param.FermActHandle->getMass())*
psi;
151 norm_diff = sqrt(norm2(diff));
153 QDPIO::cout <<
"||MINUS2: lovlapms - explicit epsilon construct ||=" << norm_diff << std::endl;
158 (*g5eps)(chi2, chi1,
MINUS);
161 norm_diff = sqrt(norm2(diff));
163 QDPIO::cout <<
"||UNITARITY: 1 - U^{dag} U ||=" << norm_diff << std::endl;
168 norm_diff = sqrt(norm2(diff));
170 QDPIO::cout <<
"||HERMITICITY: U - U^{dag} ||=" << norm_diff << std::endl;
173 chi1 = Gamma(
G5)*
psi;
175 chi1 = Gamma(
G5)*
tmp;
179 norm_diff = sqrt(norm2(diff));
181 QDPIO::cout <<
"||gamma_5 HERMITICITY: g5 U g5 - U^+||=" << norm_diff << std::endl;
183 chi1 = Gamma(
G5)*
psi;
185 chi1 = Gamma(
G5)*
tmp;
189 norm_diff = sqrt(norm2(diff));
191 QDPIO::cout <<
"||gamma_5 HERMITICITY: g5 U^+ g5 - U ||=" << norm_diff << std::endl;
195 chi1 = Gamma(
G5)*
tmp;
202 norm_diff = sqrt(norm2(diff));
204 QDPIO::cout <<
"|| sgn HERMITICITY: eps - eps^{dag} || = " << norm_diff <<std::endl;
212 chi2 = Gamma(
G5)*
tmp;
215 norm_diff = sqrt(norm2(diff));
217 QDPIO::cout <<
"||sgn UNITARITY: 1 - eps eps^{dag} || = " << norm_diff << std::endl;
Primary include file for CHROMA in application codes.
Class for counted reference semantics.
Concrete class for all gauge actions with simple boundary conditions.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
std::string getXMLInputFileName()
Get input file name.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
XMLFileWriter & getXMLOutputInstance()
Get xml output instance.
FloatingPoint< double > Double
Gauge configuration structure.
int main(int argc, char **argv)