31 XMLReader inputtop(xml, path);
38 input.
zolo4D =
dynamic_cast<Zolotarev4DFermActParams*
>(
read(inputtop,
"Zolo4D"));
39 input.
zolo5D =
dynamic_cast<Zolotarev5DFermActParams*
>(
read(inputtop,
"Zolo5D"));
41 read(inputtop,
"Cfg", input.
cfg);
45 QDPIO::cerr <<
"Error reading data: " << e << std::endl;
51 int main(
int argc,
char **argv)
60 read(xml_in,
"/BoriciTest", input);
63 QDPIO::cerr <<
"Caught Exception : " << e << std::endl;
69 Layout::setLattSize(input.
nrow);
72 multi1d<LatticeColorMatrix>
u(
Nd);
73 XMLReader gauge_file_xml, gauge_xml;
77 push(xml_out,
"t_borici");
81 MesPlq(xml_out,
"Observables",
u);
92 Zolotarev5DFermActArray S5(fbc_a, fbc, *(input.
zolo5D), xml_out);
93 Zolotarev4DFermAct S4(fbc, *(input.
zolo4D), xml_out);
109 multi1d<int>
coord(4);
117 LatticeFermion
x =
zero;
120 QDP::StopWatch swatch;
133 input.
zolo5D->AuxFermActHandle->getMass(),
138 QDPIO::cout <<
"InvBorici: " << n_iters <<
" iterations " << std::endl;
144 QDPIO::cout <<
"Final residue: " << tmpnorm << std::endl;
145 QDPIO::cout <<
"Time: " << swatch.getTimeInSeconds() <<
" s" << std::endl;
152 S4.qprop(
x, state_4,
b, REL_GMRESR_SUMR_INVERTER,
160 QDPIO::cout <<
"Time: " << swatch.getTimeInSeconds() <<
" s" << 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.
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.
std::string getXMLInputFileName()
Get input file name.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
void InvBorici(const LinearOperator< LatticeFermion > &D_4, const LinearOperatorArray< LatticeFermion > &D_5, const LinearOperatorArray< LatticeFermion > &D_dag_D_5, const LatticeFermion &b, LatticeFermion &x, const Real &tol, const Real &tol_1, const int MaxIter, const int MaxIter5D, const Real &m, int &n_iters)
XMLFileWriter & getXMLOutputInstance()
Get xml output instance.
FloatingPoint< double > Double
Gauge configuration structure.
int main(int argc, char **argv)