CHROMA
syssolver_cg_clover_params.cc
Go to the documentation of this file.
2 #include "chromabase.h"
3 #include "io/xml_group_reader.h"
4 
5 
6 
7 using namespace QDP;
8 
9 namespace Chroma {
10 
11  SysSolverCGCloverParams::SysSolverCGCloverParams(XMLReader& xml,
12  const std::string& path)
13  {
14  XMLReader paramtop(xml, path);
15  read(paramtop, "MaxCG", MaxCG);
16  read(paramtop, "RsdCG", RsdCG);
17  read(paramtop, "CloverParams", clovParams);
18  }
19 
20  void read(XMLReader& xml, const std::string& path,
22  {
23  SysSolverCGCloverParams tmp(xml, path);
24  p = tmp;
25  }
26 
27  void write(XMLWriter& xml, const std::string& path,
28  const SysSolverCGCloverParams& p) {
29  push(xml, path);
30  write(xml, "MaxCG", p.MaxCG);
31  write(xml, "RsdCG", p.RsdCG);
32  write(xml, "CloverParams", p.clovParams);
33  pop(xml);
34 
35  }
36 
37 
38 
39 }
Primary include file for CHROMA library code.
EXTERN int MaxCG
Double tmp
Definition: meslate.cc:60
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > enum InvType invType const multi1d< Real > & RsdCG
Definition: pbg5p_w.cc:30
void read(XMLReader &xml, const std::string &path, SysSolverCGCloverParams &p)
void write(XMLWriter &xml, const std::string &path, const SysSolverCGCloverParams &p)
::std::string string
Definition: gtest.h:1979
push(xml_out,"Cooled_Topology")
pop(xml_out)
Read an XML group as a std::string.