CHROMA
one_flavor_ratio_rat_rat_monomial_params_w.cc
Go to the documentation of this file.
1 /*! @file
2  * @brief One-flavor monomial params
3  */
4 
6 
7 namespace Chroma
8 {
9 
10  // Read the parameters
12  {
13  // Get the top of the parameter XML tree
14  XMLReader paramtop(xml_in, path);
15 
16  try
17  {
18  read(paramtop, "num_pf", num_pf);
19  read(paramtop, "Action", numer);
20  read(paramtop, "PrecAction", denom);
21  }
22  catch(const std::string& s)
23  {
24  QDPIO::cerr << "Caught Exception while reading parameters: " << s <<std::endl;
25  QDP_abort(1);
26  }
27  }
28 
29  //! Read Parameters
30  void read(XMLReader& xml, const std::string& path,
32  {
34  params = tmp;
35  }
36 
37 
38  //! Write Parameters
39  void write(XMLWriter& xml, const std::string& path,
41  {
42  push(xml, path);
43 
44  write(xml, "num_pf", params.num_pf);
45  write(xml, "Action", params.numer);
46  write(xml, "PrecAction", params.denom);
47 
48  pop(xml);
49  }
50 
51 } //end namespace Chroma
52 
53 
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 params
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
LatticeFermion tmp
Definition: mespbg5p_w.cc:36
push(xml_out,"Condensates")
pop(xml_out)
multi1d< LatticeFermion > s(Ncb)
::std::string string
Definition: gtest.h:1979
One-flavor ratio of determinants rational monomial params.