CHROMA
two_flavor_monomial_params_w.cc
Go to the documentation of this file.
1 /*! @file
2  * @brief Two-flavor monomial params
3  */
4 
6 #include "io/param_io.h"
7 
8 
9 namespace Chroma
10 {
11 
12  // Read the parameters
14  {
15  // Get the top of the parameter XML tree
16  XMLReader paramtop(xml_in, path);
17 
18  try {
19  // Read the inverter Parameters
20  inv_param = readXMLGroup(paramtop, "InvertParam", "invType");
21  fermact = readXMLGroup(paramtop, "FermionAction", "FermAct");
22 
23  if( paramtop.count("./ChronologicalPredictor") == 0 )
24  {
25  predictor.xml="";
26  }
27  else {
28  predictor = readXMLGroup(paramtop, "ChronologicalPredictor", "Name");
29  }
30 
31  }
32  catch(const std::string& s) {
33  QDPIO::cerr << "Caught Exception while reading parameters: " << s <<std::endl;
34  QDP_abort(1);
35  }
36 
37  QDPIO::cout << "TwoFlavorWilsonTypeFermMonomialParams: read \n" << fermact.id << std::endl;
38  }
39 
40  //! Read Parameters
41  void read(XMLReader& xml, const std::string& path,
43  {
45  params = tmp;
46  }
47 
48  //! Write Parameters
49  void write(XMLWriter& xml, const std::string& path,
51  {
52  // Not implemented
53  }
54 
55 } //end namespace Chroma
56 
57 
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.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Params params
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
LatticeFermion tmp
Definition: mespbg5p_w.cc:36
multi1d< LatticeFermion > s(Ncb)
::std::string string
Definition: gtest.h:1979
Various parameter structs and reader/writers.
Two-flavor monomial params.