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_g5eps_bj");
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;
122 double t = swatch.getTimeInSeconds();
124 QDPIO::cout <<
"CG on point source took: " <<
n_count <<
" iterations" << std::endl;
125 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
126 push(xml_out,
"CGPointSource");
142 t = swatch.getTimeInSeconds();
143 QDPIO::cout <<
"SUMR on point source took: " <<
n_count <<
" iterations" << std::endl;
144 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
145 push(xml_out,
"SUMRPointSource");
166 t = swatch.getTimeInSeconds();
168 QDPIO::cout <<
"CG on gaussian source took: " <<
n_count <<
" iterations" << std::endl;
169 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
170 push(xml_out,
"CGGaussianSource");
186 t = swatch.getTimeInSeconds();
188 QDPIO::cout <<
"SUMR on gaussian source took: " <<
n_count <<
" iterations" << std::endl;
189 QDPIO::cout <<
"Wall clock time : " <<
t <<
" seconds" << std::endl;
190 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)