26 XMLReader inputtop(xml, path);
35 read(inputtop,
"Cfg", input.
cfg);
39 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
45 int main(
int argc,
char **argv)
56 read(xml_in,
"/ovlapTest", input);
59 QDPIO::cerr <<
"Caught Exception : " << e << std::endl;
65 Layout::setLattSize(input.
param.nrow);
68 multi1d<LatticeColorMatrix>
u(
Nd);
69 XMLReader gauge_file_xml, gauge_xml;
73 push(xml_out,
"t_msumr");
77 MesPlq(xml_out,
"Observables",
u);
84 const Zolotarev4DFermActParams& zolo4d =
dynamic_cast<const Zolotarev4DFermActParams&
> (*(input.
param.FermActHandle));
88 Zolotarev4DFermAct S(fbc, zolo4d, xml_out);
105 multi1d<int>
coord(4);
110 QDP::StopWatch swatch;
130 t = swatch.getTimeInSeconds();
132 QDPIO::cout <<
"Qprop with CG on Point source: " <<
n_count
133 <<
" iters " << std::endl;
135 QDPIO::cout <<
"Wall Clock Time (CG, Point) = " <<
t <<
" seconds" << std::endl;
137 push(xml_out,
"CGPoint");
156 t = swatch.getTimeInSeconds();
158 QDPIO::cout <<
"Qprop with RelCG on Point source: " <<
n_count
159 <<
" iters " << std::endl;
161 QDPIO::cout <<
"Wall Clock Time (RelCG, Point) = " <<
t <<
" seconds" << std::endl;
163 push(xml_out,
"CGRelPoint");
185 t = swatch.getTimeInSeconds();
187 QDPIO::cout <<
"Qprop with CG on Gaussian source: " <<
n_count
188 <<
" iters " << std::endl;
190 QDPIO::cout <<
"Wall Clock Time (CG, Gauss) = " <<
t <<
" seconds" << std::endl;
192 push(xml_out,
"CGGaussian");
211 t = swatch.getTimeInSeconds();
213 QDPIO::cout <<
"Qprop with RelCG on Gaussian source: " <<
n_count
214 <<
" iters " << std::endl;
216 QDPIO::cout <<
"Wall Clock Time (RelCG, Point) = " <<
t <<
" seconds" << std::endl;
218 push(xml_out,
"CGRelGauss");
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.
Conjugate-Gradient algorithm for a generic Linear Operator.
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)