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);
93 multi1d<LatticeFermion>
psi(3);
99 multi1d<int>
coord(4);
104 QDP::StopWatch swatch;
116 input.
param.MultiMasses,
126 t = swatch.getTimeInSeconds();
128 QDPIO::cout <<
"Multi Qprop with Relaxed SUMR on Point source: " <<
n_count
129 <<
" iters " << std::endl;
131 QDPIO::cout <<
"Wall Clock Time (Rel SUMR, Point) = " <<
t <<
" seconds" << std::endl;
133 push(xml_out,
"RelSUMRPoint");
144 input.
param.MultiMasses,
154 t = swatch.getTimeInSeconds();
156 QDPIO::cout <<
"Multi Qprop with Relaxed CG on Point source: " <<
n_count
157 <<
" iters " << std::endl;
159 QDPIO::cout <<
"Wall Clock Time (RelCG, Point) = " <<
t <<
" seconds" << std::endl;
161 push(xml_out,
"RelCGPoint");
171 input.
param.MultiMasses,
181 t = swatch.getTimeInSeconds();
183 QDPIO::cout <<
"Multi Qprop with Relaxed SUMR on Point source: " <<
n_count
184 <<
" iters " << std::endl;
186 QDPIO::cout <<
"Wall Clock Time (SUMR, Point) = " <<
t <<
" seconds" << std::endl;
188 push(xml_out,
"SUMRPoint");
199 input.
param.MultiMasses,
209 t = swatch.getTimeInSeconds();
211 QDPIO::cout <<
"Multi Qprop with CG on Point source: " <<
n_count
212 <<
" iters " << std::endl;
214 QDPIO::cout <<
"Wall Clock Time (CG, Point) = " <<
t <<
" seconds" << std::endl;
216 push(xml_out,
"CGPoint");
231 input.
param.MultiMasses,
241 t = swatch.getTimeInSeconds();
243 QDPIO::cout <<
"Multi Qprop with SUMR on Gaussian source: " <<
n_count
244 <<
" iters " << std::endl;
246 QDPIO::cout <<
"Wall Clock Time (SUMR, Gaussian) = " <<
t <<
" seconds" << std::endl;
248 push(xml_out,
"MSUMRGauss");
259 input.
param.MultiMasses,
269 t = swatch.getTimeInSeconds();
271 QDPIO::cout <<
"Multi Qprop with CG on Gaussian source: " <<
n_count
272 <<
" iters " << std::endl;
274 QDPIO::cout <<
"Wall Clock Time (CG, Gaussian) = " <<
t <<
" seconds" << std::endl;
276 push(xml_out,
"CGGauss");
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.
Multi-propagator parameters.
int main(int argc, char **argv)