27 QDP_volfmt_t prop_out_volfmt;
41 XMLReader inputtop(xml, path);
53 XMLReader paramtop(xml, path);
56 read(paramtop,
"version", version);
66 QDPIO::cerr <<
"Input parameter version " << version <<
" unsupported." << std::endl;
78 XMLReader inputtop(xml, path);
91 QDPIO::cerr <<
"Error reading qproptransf data: " << e << std::endl;
104 int main(
int argc,
char *argv[])
118 read(xml_in,
"/qproptrev", input);
124 QDPIO::cout <<
"QPROPTREV: propagator gauge fixing utility" << std::endl;
127 push(xml_out,
"qproptrev");
131 write(xml_out,
"input", xml_in);
140 LatticePropagator
prop;
141 XMLReader prop_in_xml, prop_in_file_xml;
143 push(xml_out,
"SciDAC_propagator");
149 write(xml_out,
"File_xml", prop_in_file_xml);
150 write(xml_out,
"Record_xml", prop_in_xml);
161 read(prop_in_xml,
"/Propagator/PropSource", source_header);
165 QDPIO::cerr <<
"Error extracting forward_prop header: " << e << std::endl;
183 multi1d<Double> prop_corr = sumMulti(localNorm2(
prop),
186 push(xml_out,
"Prop_correlator");
187 write(xml_out,
"prop_corr", prop_corr);
200 LatticePropagator prop_tmp = - (Gamma(7) *
prop * Gamma(7));
208 for(
int t=1;
t < length; ++
t)
210 int tp = (length -
t) % length;
214 tmp1[phases.
getSet()[tp]] = prop_tmp;
215 for(
int k=tp-1;
k >=
t; --
k)
229 tmp1[phases.
getSet()[tp]] = prop_tmp;
230 for(
int k=tp+1;
k <=
t; ++
k)
245 multi1d<Double> trev_prop_corr = sumMulti(localNorm2(
prop),
248 push(xml_out,
"TRevProp_correlator");
249 write(xml_out,
"trev_prop_corr", trev_prop_corr);
258 XMLBufferWriter prop_out_file_xml;
259 push(prop_out_file_xml,
"propagator");
261 write(prop_out_file_xml,
"id",
id);
262 pop(prop_out_file_xml);
266 XMLBufferWriter prop_out_record_xml;
267 push(prop_out_record_xml,
"Propagator");
269 write(prop_out_record_xml,
"PropSource", source_header);
271 QDPIO::cout <<
"Create config info" << std::endl;
272 XMLReader gauge_xml(prop_in_xml,
"/Propagator/Config_info");
273 std::ostringstream gauge_str;
274 gauge_xml.print(gauge_str);
275 write(prop_out_record_xml,
"Config_info", gauge_str.str());
276 QDPIO::cout <<
"Done config info" << std::endl;
278 pop(prop_out_record_xml);
Primary include file for CHROMA in application codes.
Fourier transform phase factor support.
int numSubsets() const
Number of subsets - length in decay direction.
const Set & getSet() const
The set to be used in sumMulti.
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 proginfo(XMLWriter &xml)
Print out basic information about this program.
std::map< std::string, SinkPropContainer_t > prop
ForwardProp_t prop_header
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
void readQprop(XMLReader &file_xml, XMLReader &record_xml, LatticePropagator &quark_prop, const std::string &file, QDP_serialparallel_t serpar)
Read a Chroma propagator.
void writeQprop(XMLBufferWriter &file_xml, XMLBufferWriter &record_xml, const LatticePropagator &quark_prop, const std::string &file, QDP_volfmt_t volfmt, QDP_serialparallel_t serpar)
Write a Chroma propagator.
std::string getXMLInputFileName()
Get input file name.
XMLFileWriter & getXMLOutputInstance()
Get xml output instance.
int main(int argc, char *argv[])
Propagator source construction parameters.
Parameters for running program.
std::string prop_out_file
QDP_volfmt_t prop_out_volfmt