CHROMA
key_prop_matelem.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Key for propagator colorstd::vector matrix elements
4  */
5 
6 #ifndef __key_prop_matelem_h__
7 #define __key_prop_matelem_h__
8 
9 #include "chromabase.h"
10 #include "util/ferm/key_val_db.h"
11 
12 namespace Chroma
13 {
14  //----------------------------------------------------------------------------
15  /*!
16  * \ingroup ferm
17  * @{
18  */
19  //! Prop operator
21  {
22  int t_slice; /*!< Propagator time slice */
23  int t_source; /*!< Source time slice */
24  int spin_src; /*!< Source spin index */
25  int spin_snk; /*!< Sink spin index */
26  std::string mass_label; /*!< A mass label */
27  };
28 
29 
30  //! Prop operator
32  {
33  multi2d<ComplexD> mat; /*!< Colorstd::vector source and sink */
34  };
35 
36 
37  //----------------------------------------------------------------------------
38  //! Holds key and value as temporaries
40  {
43  };
44 
45  //----------------------------------------------------------------------------
46  //! PropElementalOperator reader
47  void read(BinaryReader& bin, KeyPropElementalOperator_t& param);
48 
49  //! PropElementalOperator write
50  void write(BinaryWriter& bin, const KeyPropElementalOperator_t& param);
51 
52  //! PropElementalOperator reader
53  void read(XMLReader& xml, const std::string& path, KeyPropElementalOperator_t& param);
54 
55  //! PropElementalOperator writer
56  void write(XMLWriter& xml, const std::string& path, const KeyPropElementalOperator_t& param);
57 
58 
59  //----------------------------------------------------------------------------
60  //! PropElementalOperator reader
61  void read(BinaryReader& bin, ValPropElementalOperator_t& param);
62 
63  //! PropElementalOperator write
64  void write(BinaryWriter& bin, const ValPropElementalOperator_t& param);
65 
66  /*! @} */ // end of group ferm
67 
68 } // namespace Chroma
69 
70 #endif
Primary include file for CHROMA library code.
Serializable value harness.
Definition: key_val_db.h:69
Serializable key harness.
Definition: key_val_db.h:21
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 and values for DB.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Holds key and value as temporaries.
SerialDBKey< KeyPropElementalOperator_t > key
SerialDBData< ValPropElementalOperator_t > val