CHROMA
multi_syssolver_mr_params.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Params of MR inverter
3  */
4 
6 
7 namespace Chroma
8 {
9 
10  // Read parameters
11  void read(XMLReader& xml, const std::string& path, MultiSysSolverMRParams& param)
12  {
13  XMLReader paramtop(xml, path);
14 
15  read(paramtop, "RsdCG", param.RsdCG);
16  read(paramtop, "MaxCG", param.MaxCG);
17  }
18 
19  // Writer parameters
20  void write(XMLWriter& xml, const std::string& path, const MultiSysSolverMRParams& param)
21  {
22  push(xml, path);
23 
24 // int version = 1;
25 // write(xml, "version", version);
26  write(xml, "invType", "MR_INVERTER");
27  write(xml, "RsdCG", param.RsdCG);
28  write(xml, "MaxCG", param.MaxCG);
29 
30  pop(xml);
31  }
32 
33  //! Default constructor
35  {
36  RsdCG = zero;
37  MaxCG = 0;
38  }
39 
40  //! Read parameters
42  {
43  read(xml, path, *this);
44  }
45 
46 }
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
Params of MR inverter.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
push(xml_out,"Condensates")
pop(xml_out)
Double zero
Definition: invbicg.cc:106
::std::string string
Definition: gtest.h:1979