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)
55 read(xml_in,
"/ovlapTest", input);
58 QDPIO::cerr <<
"Caught Exception : " << e << std::endl;
64 Layout::setLattSize(input.
param.nrow);
67 multi1d<LatticeColorMatrix>
u(
Nd);
68 XMLReader gauge_file_xml, gauge_xml;
72 push(xml_out,
"t_rel_gmresr");
76 MesPlq(xml_out,
"Observables",
u);
83 QDPIO::cout <<
"FERM_ACT_ZOLOTAREV_4D" << std::endl;
84 const Zolotarev4DFermActParams& zolo4d =
dynamic_cast<const Zolotarev4DFermActParams&
> (*(input.
param.FermActHandle));
88 Zolotarev4DFermAct S(fbc, zolo4d, xml_out);
99 multi1d<int>
coord(4);
104 QDP::StopWatch swatch;
117 REL_GMRESR_SUMR_INVERTER,
127 t = swatch.getTimeInSeconds();
129 QDPIO::cout <<
"GMRESRSUMR on point source took: " <<
n_count <<
" iterations" << std::endl;
130 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
131 push(xml_out,
"GMRESRSUMRPointSource");
142 REL_GMRESR_CG_INVERTER,
151 t = swatch.getTimeInSeconds();
153 QDPIO::cout <<
"GMRESRCG on point source took: " <<
n_count <<
" iterations" << std::endl;
154 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
155 push(xml_out,
"GMRESRCGPointSource");
171 t = swatch.getTimeInSeconds();
172 QDPIO::cout <<
"SUMR on point source took: " <<
n_count <<
" iterations" << std::endl;
173 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
174 push(xml_out,
"SUMRPointSource");
195 t = swatch.getTimeInSeconds();
197 QDPIO::cout <<
"CG on gaussian source took: " <<
n_count <<
" iterations" << std::endl;
198 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
199 push(xml_out,
"CGGaussianSource");
215 t = swatch.getTimeInSeconds();
217 QDPIO::cout <<
"SUMR on gaussian source took: " <<
n_count <<
" iterations" << std::endl;
218 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
219 push(xml_out,
"SUMRGaussianSource");
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 write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
void srcfil(LatticeFermion &a, const multi1d< int > &coord, int color_index, int spin_index)
Fill a specific color and spin index with 1.0.
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.
multi1d< LatticeFermion > chi(Ncb)
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.
Gauge configuration structure.
int main(int argc, char **argv)