CHROMA
one_flavor_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  }
21  catch(const std::string& s)
22  {
23  QDPIO::cerr << "Caught Exception while reading parameters: " << s <<std::endl;
24  QDP_abort(1);
25  }
26  }
27 
28  //! Read Parameters
29  void read(XMLReader& xml, const std::string& path,
31  {
33  params = tmp;
34  }
35 
36  //! Write Parameters
37  void write(XMLWriter& xml, const std::string& path,
39  {
40  push(xml, path);
41 
42  write(xml, "num_pf", params.num_pf);
43  write(xml, "Action", params.numer);
44 
45  pop(xml);
46  }
47 
48 } //end namespace Chroma
49 
50 
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 monomial params.