CHROMA
hisq_fermact_params_s.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Hisq 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  epsilon = 0.0 ;
18  }
19 
20 
21  //! Read parameters
23  {
24  XMLReader paramtop(xml, path);
25 
26  // Read the stuff for the action
27  read(paramtop, "Mass", Mass);
28  read(paramtop, "u0", u0);
29 
30  if( paramtop.count("epsilon") > 0 ) {
31  read(paramtop, "epsilon", epsilon);
32  }
33  else
34  {
35  epsilon = 0.0 ;
36  }
37 
38 
39  // Read optional anisoParam.
40  }
41 
42  //! Read parameters
43  void read(XMLReader& xml, const std::string& path, HisqFermActParams& param)
44  {
45  HisqFermActParams tmp(xml, path);
46  param = tmp;
47  }
48 
49  //! Writer parameters
50  void write(XMLWriter& xml, const std::string& path, const HisqFermActParams& param)
51  {
52  push(xml, path);
53 
54  write(xml, "Mass", param.Mass);
55  write(xml, "u0", param.u0);
56  write(xml, "epsilon", param.epsilon);
57  pop(xml);
58  }
59 }
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.
Hisq fermion action 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 hisq ferm acts.
HisqFermActParams()
Default constructor.