21 namespace InlineNprEnv
55 XMLReader inputtop(xml, path);
82 XMLReader paramtop(xml_in, path);
84 if (paramtop.count(
"Frequency") == 1)
92 if(paramtop.count(
"output_type")==1)
101 if (paramtop.count(
"xml_file") != 0)
108 QDPIO::cerr << __func__ <<
": Caught Exception reading XML: " << e << std::endl;
164 push(xml_out,
"npr");
165 write(xml_out,
"update_no", update_no);
166 write(xml_out,
"xml_file", xml_file);
169 XMLFileWriter xml(xml_file);
170 func(update_no, xml);
174 func(update_no, xml_out);
190 XMLBufferWriter gauge_xml;
196 catch( std::bad_cast )
208 const multi1d<LatticeColorMatrix>&
u =
211 XMLReader prop_file_xml,prop_xml ;
216 push(xml_out,
"npr");
217 write(xml_out,
"update_no", update_no);
218 XMLBufferWriter file_xml;
219 push(file_xml,
"NPR_W");
220 push(file_xml,
"Output_version");
221 write(file_xml,
"out_version", 1);
234 write(xml_out,
"Config_info", gauge_xml);
236 push(xml_out,
"Output_version");
237 write(xml_out,
"out_version", 1);
239 write(xml_out,
"Config_info", gauge_xml);
240 write(xml_out,
"Propagator_info", prop_xml);
242 write(file_xml,
"Config_info", gauge_xml);
243 write(file_xml,
"Propagator_info", prop_xml);
247 MesPlq(xml_out,
"Observables",
u);
253 multi1d<DPropagator> FF(phases.
numMom());
254 for (
int m(0);
m < FF.size();
m++){
255 multi1d<DPropagator> tt ;
256 tt = sumMulti(phases[
m]*quark_propagator, phases.
getSet()) ;
262 push(xml_out,
"FT_prop") ;
264 push(xml_out,
"prop_desc");
267 write(xml_out,
"prop",FF[
p]);
272 QDPFileWriter FFfile(file_xml,
params.
filename, QDPIO_SINGLEFILE, QDPIO_SERIAL, QDPIO_OPEN);
274 XMLBufferWriter record_xml;
275 push(record_xml,
"prop_desc");
278 write(FFfile,record_xml,FF[
p]);
287 multi1d<Double> prop_corr = sumMulti(localNorm2(quark_propagator),
290 push(xml_out,
"Prop_correlator");
291 write(xml_out,
"prop_corr", prop_corr);
299 << snoop.getTimeInSeconds()
300 <<
" secs" << std::endl;
Inline measurement factory.
Inline measurement of Wilson loops.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
Fourier transform phase factor support.
multi1d< int > numToMom(int mom_num) const
Convert momenta id to actual array of momenta.
int numMom() const
Number of momenta.
const Set & getSet() const
The set to be used in sumMulti.
Class structure for fermion actions.
Fermion action factories.
All Wilson-type fermion actions.
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::string makeXMLFileName(std::string xml_file, unsigned long update_no)
Return a xml file name for inline measurements.
Inline construction of Landau gauge propagator.
Named object function std::map.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
void write(XMLWriter &xml, const std::string &path, const InlineNprParams::NamedObject_t &input)
Npr output.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
Print out basic info about this program.
Fourier transform phase factor support.
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineNprParams::NamedObject_t named_obj