CHROMA
key_timeslice_gauge.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Key for time-sliced gauge fields
3  */
4 
6 
7 namespace Chroma
8 {
9  //----------------------------------------------------------------------------
10  // Support for the keys of prop colo
12  {
13  multi1d<int> lgaa(2);
14  lgaa[0] = a.t_slice;
15  lgaa[1] = a.dir;
16 
17  multi1d<int> lgbb(2);
18  lgbb[0] = b.t_slice;
19  lgbb[1] = b.dir;
20 
21  return (lgaa < lgbb);
22  }
23 
24 
25 
26  //----------------------------------------------------------------------------
27  // KeyTimeSliceDist read
28  void read(BinaryReader& bin, KeyTimeSliceGauge_t& param)
29  {
30  read(bin, param.t_slice);
31  read(bin, param.dir);
32  }
33 
34  // KeyTimeSliceDist write
35  void write(BinaryWriter& bin, const KeyTimeSliceGauge_t& param)
36  {
37  write(bin, param.t_slice);
38  write(bin, param.dir);
39  }
40 
41  //! KeyTimeSliceDist reader
42  void read(XMLReader& xml, const std::string& path, KeyTimeSliceGauge_t& param)
43  {
44  XMLReader paramtop(xml, path);
45 
46  read(paramtop, "t_slice", param.t_slice);
47  read(paramtop, "dir", param.dir);
48  }
49 
50  // KeyTimeSliceDist writer
51  void write(XMLWriter& xml, const std::string& path, const KeyTimeSliceGauge_t& param)
52  {
53  push(xml, path);
54 
55  write(xml, "t_slice", param.t_slice);
56  write(xml, "dir", param.dir);
57 
58  pop(xml);
59  }
60 
61 } // 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 time-sliced gauge fields.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
bool operator<(const KeyDispColorVector_t &a, const KeyDispColorVector_t &b)
Support for the keys of smeared and displaced color vectors.
push(xml_out,"Condensates")
Complex a
Definition: invbicg.cc:95
pop(xml_out)
Complex b
Definition: invbicg.cc:96
::std::string string
Definition: gtest.h:1979