CHROMA
syssolver_bicgstab_params.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Params of CG inverter
3  */
4 
6 
7 namespace Chroma
8 {
9 
10  // Read parameters
11  void read(XMLReader& xml, const std::string& path, SysSolverBiCGStabParams& param)
12  {
13  XMLReader paramtop(xml, path);
14 
15  read(paramtop, "RsdBiCGStab", param.RsdBiCGStab);
16  read(paramtop, "MaxBiCGStab", param.MaxBiCGStab);
17 
18  }
19 
20  // Writer parameters
21  void write(XMLWriter& xml, const std::string& path, const SysSolverBiCGStabParams& param)
22  {
23  push(xml, path);
24 
25 // int version = 1;
26 // write(xml, "version", version);
27  write(xml, "invType", "BICGSTAB_INVERTER");
28  write(xml, "RsdBiCGStab", param.RsdBiCGStab);
29  write(xml, "MaxBiCGStab", param.MaxBiCGStab);
30  pop(xml);
31  }
32 
33  //! Default constructor
35  {
36  RsdBiCGStab = zero;
37  MaxBiCGStab = 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.
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
Params for BiCGStab inverter.
Solve a BICGSTAB system.