18 #include "actions/ferm/invert/quda_solvers/syssolver_linop_clover_quda_0.3.h"
36 typedef LatticeFermion
T;
37 typedef multi1d<LatticeColorMatrix>
Q;
38 typedef multi1d<LatticeColorMatrix>
P;
40 std::istringstream is(
p.fermact.xml);
51 std::istringstream is2(
p.quda_solver.xml);
52 XMLReader quda_xml(is2);
71 QDPIO::cout <<
"||r||= " << sqrt(norm2(
r, rb[1])) << std::endl;
72 QDPIO::cout <<
"||r||/||b||= " << sqrt(norm2(
r, rb[1]))/sqrt(norm2(
chi,rb[1])) << std::endl;
82 read(
r,
"Cfg",
p.inputCfg);
98 int main(
int argc,
char **argv)
102 QDPIO::cout <<
"Linkage = " <<
linkageHack() << std::endl;
115 QDPIO::cerr <<
"Caught Exception reading XML: " << e << std::endl;
118 Layout::setLattSize(
params.nrow);
121 multi1d<LatticeColorMatrix>
u(
Nd);
122 XMLReader gauge_file_xml, gauge_xml;
129 push(xml_out,
"t_invert");
130 push(xml_out,
"params");
135 MesPlq(xml_out,
"Observables",
u);
Primary include file for CHROMA in application codes.
Class for counted reference semantics.
All ferm create-state method.
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 unitarityCheck(const multi1d< LatticeColorMatrixF3 > &u)
Check the unitarity of color matrix in SU(N)
void gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
multi1d< LatticeColorMatrix > P
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::Q Q
push(xml_out,"Condensates")
LinOpSysSolverMGProtoClover::T T
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.
const WilsonTypeFermAct< multi1d< LatticeFermion > > & S_f
Gauge configuration structure.
Hold group xml and type id.
Solve a M*psi=chi linear system by CG2.
Factory for solving M*psi=chi where M is not hermitian or pos. def.
void checkInverter(const AppParams &p, multi1d< LatticeColorMatrix > &u)
int main(int argc, char **argv)