CHROMA
asqtad_fermact_params_s.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Asqtad fermion action parameters
3  */
4 
5 #include "chromabase.h"
7 
8 #include "io/param_io.h"
9 
10 namespace Chroma
11 {
12  //! Default constructor
14  {
15  Mass = 0.0;
16  u0 = 1.0;
17  }
18 
19 
20  //! Read parameters
22  {
23  XMLReader paramtop(xml, path);
24 
25  // Read the stuff for the action
26  read(paramtop, "Mass", Mass);
27  read(paramtop, "u0", u0);
28 
29  // Read optional anisoParam.
30  }
31 
32  //! Read parameters
33  void read(XMLReader& xml, const std::string& path, AsqtadFermActParams& param)
34  {
35  AsqtadFermActParams tmp(xml, path);
36  param = tmp;
37  }
38 
39  //! Writer parameters
40  void write(XMLWriter& xml, const std::string& path, const AsqtadFermActParams& param)
41  {
42  push(xml, path);
43 
44  write(xml, "Mass", param.Mass);
45  write(xml, "u0", param.u0);
46  pop(xml);
47  }
48 }
AsqTad fermion action parameters.
Primary include file for CHROMA library code.
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
LatticeFermion tmp
Definition: mespbg5p_w.cc:36
push(xml_out,"Condensates")
pop(xml_out)
::std::string string
Definition: gtest.h:1979
Various parameter structs and reader/writers.
Params for asqtad ferm acts.
AsqtadFermActParams()
Default constructor.