43 XMLReader inputtop(xml, path);
56 XMLReader paramtop(xml, path);
59 read(paramtop,
"version", version);
69 QDPIO::cerr <<
"Input parameter version " << version <<
" unsupported." << std::endl;
81 XMLReader inputtop(xml, path);
90 read(inputtop,
"Cfg", input.
cfg);
97 QDPIO::cerr <<
"Error reading qproptransf data: " << e << std::endl;
110 int main(
int argc,
char *argv[])
124 read(xml_in,
"/qpropgfix", input);
130 QDPIO::cout <<
"QPROPGFIX: propagator gauge fixing utility" << std::endl;
133 push(xml_out,
"qpropgfix");
137 write(xml_out,
"input", xml_in);
146 multi1d<LatticeColorMatrix>
u(
Nd);
147 XMLReader gauge_file_xml, gauge_xml;
155 LatticeColorMatrix g;
156 XMLReader transf_file_xml, transf_xml;
160 LatticeColorMatrixF g_f;
161 read(from,transf_xml,g_f);
171 LatticePropagator
prop;
172 XMLReader prop_in_xml, prop_in_file_xml;
174 push(xml_out,
"SciDAC_propagator");
180 write(xml_out,
"File_xml", prop_in_file_xml);
181 write(xml_out,
"Record_xml", prop_in_xml);
192 read(prop_in_xml,
"/Propagator/PropSource", source_header);
196 QDPIO::cerr <<
"Error extracting forward_prop header: " << e << std::endl;
210 multi1d<Double> prop_corr = sumMulti(localNorm2(
prop),
213 push(xml_out,
"Prop_correlator");
214 write(xml_out,
"prop_corr", prop_corr);
236 multi1d<Double> gfix_prop_corr = sumMulti(localNorm2(
prop),
239 push(xml_out,
"GFixProp_correlator");
240 write(xml_out,
"gfix_prop_corr", gfix_prop_corr);
249 XMLBufferWriter prop_out_file_xml;
250 push(prop_out_file_xml,
"propagator");
252 write(prop_out_file_xml,
"id",
id);
253 pop(prop_out_file_xml);
255 XMLBufferWriter prop_out_record_xml;
256 push(prop_out_record_xml,
"Propagator");
258 write(prop_out_record_xml,
"PropSource", source_header);
259 write(prop_out_record_xml,
"Config_info", gauge_xml);
260 pop(prop_out_record_xml);
Primary include file for CHROMA in application codes.
Fourier transform phase factor support.
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 gaugeStartup(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u, Cfg_t &cfg)
Initialize the gauge fields.
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.
static multi1d< LatticeColorMatrix > u
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[])
Gauge configuration structure.
Propagator source construction parameters.
multi1d< int > getTSrce() const
Parameters for running program.
std::string prop_out_file
QDP_volfmt_t prop_out_volfmt