12 namespace QPhiXSolverTypeEnv {
17 success = theQPhiXSolverTypeMap::Instance().registerPair(
std::string(
"CG"),
20 success &=theQPhiXSolverTypeMap::Instance().registerPair(
std::string(
"BICGSTAB" ),
30 using namespace QPhiXSolverTypeEnv;
33 theQPhiXSolverTypeMap::Instance().read(
typeIDString, xml_in, path,
t);
38 theQPhiXSolverTypeMap::Instance().write(
typeIDString, xml_out, path,
t);
43 SysSolverQPhiXCloverParams::SysSolverQPhiXCloverParams(XMLReader& xml,
46 XMLReader paramtop(xml, path);
48 read(paramtop,
"MaxIter", MaxIter);
49 read(paramtop,
"RsdTarget", RsdTarget);
50 read(paramtop,
"CloverParams", CloverParams);
51 read(paramtop,
"SolverType", SolverType);
52 read(paramtop,
"AntiPeriodicT", AntiPeriodicT);
54 if ( paramtop.count(
"Verbose") > 0 ) {
55 read(paramtop,
"Verbose", VerboseP);
61 if (paramtop.count(
"Delta") > 0 ) {
62 read(paramtop,
"Delta", Delta);
68 if( paramtop.count(
"RsdToleranceFactor") > 0 ) {
69 read(paramtop,
"RsdToleranceFactor", RsdToleranceFactor);
72 RsdToleranceFactor = Real(10);
87 write(xml,
"MaxIter",
p.MaxIter);
91 if( toBool(
p.Delta > 0 ) ) {
92 write(xml,
"Delta",
p.Delta);
95 write(xml,
"RsdTarget",
p.RsdTarget);
96 write(xml,
"Verbose",
p.VerboseP);
97 write(xml,
"CloverParams",
p.CloverParams);
98 write(xml,
"SolverType",
p.SolverType);
99 write(xml,
"AntiPeriodicT",
p.AntiPeriodicT);
100 write(xml,
"RsdToleranceFactor",
p.RsdToleranceFactor);
Primary include file for CHROMA library code.
const std::string typeIDString
Asqtad Staggered-Dirac operator.
void read(XMLReader &xml, const std::string &path, SysSolverQPhiXCloverParams &p)
void write(XMLWriter &xml, const std::string &path, const SysSolverQPhiXCloverParams &p)
push(xml_out,"Cooled_Topology")
Read an XML group as a std::string.