CHROMA
cppacs_io.cc
Go to the documentation of this file.
1 
2 /*! \file
3  * \brief CPPACS gauge format routines
4  */
5 
6 #include "chromabase.h"
7 #include "io/cppacs_io.h"
8 
9 namespace Chroma {
10 
11 
12 //! Initialize header with default values
14 {
15  header.nrow = Layout::lattSize();
16  header.date = "put in some date here";
17 }
18 
19 
20 
21 //! Source header read
22 void read(XMLReader& xml, const std::string& path, CPPACSGauge_t& header)
23 {
24  XMLReader paramtop(xml, path);
25 
26  read(paramtop, "date", header.date);
27  read(paramtop, "nrow", header.nrow);
28 }
29 
30 
31 //! Source header writer
32 void write(XMLWriter& xml, const std::string& path, const CPPACSGauge_t& header)
33 {
34  push(xml, path);
35 
36  write(xml, "date", header.date);
37  write(xml, "nrow", header.nrow);
38 
39  pop(xml);
40 }
41 
42 } // end namespace Chroma
Primary include file for CHROMA library code.
CPPACS gauge format routines.
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.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
push(xml_out,"Condensates")
void CPPACSGaugeInit(CPPACSGauge_t &header)
Initialize header with default values.
Definition: cppacs_io.cc:13
pop(xml_out)
::std::string string
Definition: gtest.h:1979
CPPACS gauge field header.
Definition: cppacs_io.h:16
multi1d< int > nrow
Definition: cppacs_io.h:17
std::string date
Definition: cppacs_io.h:18