CHROMA
wilson_coarse_fine_fermact_params_w.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Wilson coarse-fine 2+2 anisotropic lattice fermion action parameters
3  */
4 
5 #include "chromabase.h"
7 
8 namespace Chroma
9 {
10  //! Default constructor
12  {
13  Mass = 0.0;
14  gamma_f = 1.0;
15  coarse_dirs.resize(Nd);
16  coarse_dirs = true;
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, "coarse_dirs", coarse_dirs);
28  read(paramtop, "gamma_f", gamma_f);
29  }
30 
31  //! Read parameters
32  void read(XMLReader& xml, const std::string& path, WilsonCoarseFineFermActParams& param)
33  {
35  param = tmp;
36  }
37 
38  //! Writer parameters
39  void write(XMLWriter& xml, const std::string& path, const WilsonCoarseFineFermActParams& param)
40  {
41  push(xml, path);
42 
43  write(xml, "Mass", param.Mass);
44  write(xml, "coarse_dirs", param.coarse_dirs);
45  write(xml, "gamma_f", param.gamma_f);
46 
47  pop(xml);
48  }
49 }
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.
Nd
Definition: meslate.cc:74
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
Wilson coarse-fine 2+2 anisotropic lattice fermion action parameters.