20 XMLReader& record_xml,
21 multi1d<LatticeColorMatrix>&
u,
23 QDP_serialparallel_t serpar)
25 QDPFileReader to(file_xml,file,serpar);
33 multi1d<LatticeColorMatrixF> u_f(
u.size());
34 read(to, record_xml, u_f);
36 read(to,record_xml,
u);
39 QDPIO::cerr << __func__ <<
": error reading file " << file << std::endl;
44 for(
int mu=0;
mu <
u.size(); ++
mu)
61 XMLBufferWriter& record_xml,
62 const multi1d<LatticeColorMatrix>&
u,
65 QDP_serialparallel_t serpar)
67 QDPFileWriter to(file_xml,file,volfmt,serpar,QDPIO_OPEN);
70 QDPIO::cerr << __func__ <<
": error writing file " << file << std::endl;
75 multi1d<LatticeColorMatrixF> u_f(
u.size());
76 for(
int mu=0;
mu <
u.size(); ++
mu)
79 write(to,record_xml,u_f);
Primary include file for CHROMA library code.
Gauge reader/writers in QIO format.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void readGauge(XMLReader &file_xml, XMLReader &record_xml, multi1d< LatticeColorMatrix > &u, const std::string &file, QDP_serialparallel_t serpar)
Read a gauge config in QIO format.
void writeGauge(XMLBufferWriter &file_xml, XMLBufferWriter &record_xml, const multi1d< LatticeColorMatrix > &u, const std::string &file, QDP_volfmt_t volfmt, QDP_serialparallel_t serpar)
Write a gauge config in QIO format.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u