CHROMA
key_prop_distillation.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Key for vanilla distillation propagator sources and solutions
3  */
4 
6 #include <vector>
7 
8 namespace Chroma
9 {
10  //----------------------------------------------------------------------------
11  //! Diagnostics
12  StandardOutputStream& operator<<(StandardOutputStream& os, const KeyPropDistillation_t& param)
13  {
14  os << "KeyPropDistillation_t:";
15  os << " t_slice= " << param.t_slice;
16  os << " t_source= " << param.t_source;
17  os << " spin_snk= " << param.spin_snk;
18  os << " spin_src= " << param.spin_src;
19  os << " colorvec_src= " << param.colorvec_src;
20  os << " mass= " << param.mass;
21  os << std::endl;
22 
23  return os;
24  }
25 
26  //----------------------------------------------------------------------------
27  // KeyPropDist read
28  void read(BinaryReader& bin, KeyPropDistillation_t& param)
29  {
30  read(bin, param.t_source);
31  read(bin, param.t_slice);
32  read(bin, param.colorvec_src);
33  read(bin, param.spin_src);
34  read(bin, param.spin_snk);
35  readDesc(bin, param.mass);
36  }
37 
38  // KeyPropDist write
39  void write(BinaryWriter& bin, const KeyPropDistillation_t& param)
40  {
41  write(bin, param.t_source);
42  write(bin, param.t_slice);
43  write(bin, param.colorvec_src);
44  write(bin, param.spin_src);
45  write(bin, param.spin_snk);
46  writeDesc(bin, param.mass);
47  }
48 
49  //! KeyPropDist reader
50  void read(XMLReader& xml, const std::string& path, KeyPropDistillation_t& param)
51  {
52  XMLReader paramtop(xml, path);
53 
54  read(paramtop, "t_source", param.t_source);
55  read(paramtop, "t_slice", param.t_slice);
56  read(paramtop, "colorvec_src", param.colorvec_src);
57  read(paramtop, "spin_src", param.spin_src);
58  read(paramtop, "spin_snk", param.spin_snk);
59  read(paramtop, "mass", param.mass);
60  }
61 
62  // KeyPropDist writer
63  void write(XMLWriter& xml, const std::string& path, const KeyPropDistillation_t& param)
64  {
65  push(xml, path);
66 
67  write(xml, "t_source", param.t_source);
68  write(xml, "t_slice", param.t_slice);
69  write(xml, "colorvec_src", param.colorvec_src);
70  write(xml, "spin_src", param.spin_src);
71  write(xml, "spin_snk", param.spin_snk);
72  write(xml, "mass", param.mass);
73 
74  pop(xml);
75  }
76 
77 } // namespace Chroma
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.
Key for vanilla distillation propagator sources and solutions.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
QDP::StandardOutputStream & operator<<(QDP::StandardOutputStream &s, const multi1d< int > &d)
Definition: npr_vertex_w.cc:12
push(xml_out,"Condensates")
pop(xml_out)
::std::string string
Definition: gtest.h:1979
Distillation propagators.