14 XMLReader paramtop(xml, path);
16 read(paramtop,
"RsdTarget",
p.RsdTarget);
17 read(paramtop,
"NKrylov",
p.NKrylov);
18 read(paramtop,
"NDefl",
p.NDefl);
19 read(paramtop,
"MaxIter",
p.MaxIter);
20 p.PrecondParams =
readXMLGroup(paramtop,
"PrecondParams",
"invType");
28 write(xml,
"RsdTarget",
p.RsdTarget);
29 write(xml,
"NKyrlov",
p.NKrylov);
30 write(xml,
"NDefl",
p.NDefl);
31 write(xml,
"MaxIter",
p.MaxIter);
32 xml <<
p.PrecondParams.xml;
35 SysSolverFGMRESDRParams::SysSolverFGMRESDRParams()
44 XMLBufferWriter xml_buf;
45 push(xml_buf,
"root");
46 push(xml_buf,
"PrecondParams");
47 write(xml_buf,
"invType",
"NULL");
52 XMLReader read_back(xml_buf);
53 PrecondParams =
readXMLGroup(read_back,
"PrecondParams",
"invType");
57 SysSolverFGMRESDRParams::SysSolverFGMRESDRParams(XMLReader& xml,
const std::string& path)
59 read(xml, path, *
this);
void write(XMLWriter &xml, const std::string &path, const SysSolverFGMRESDRParams &p)
void read(XMLReader &xml, const std::string &path, SysSolverFGMRESDRParams &p)
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Asqtad Staggered-Dirac operator.
Params for FGMRESDR inverter.
Solve an FGMRESR-DR system.
push(xml_out,"Cooled_Topology")