23 XMLReader inputtop(xml, path);
43 namespace InlineSinkSmearEnv
80 XMLReader paramtop(xml_in, path);
82 if (paramtop.count(
"Frequency") == 1)
95 QDPIO::cerr << __func__ <<
": Caught Exception reading XML: " << e << std::endl;
122 QDPIO::cout <<
name <<
": Sink smearing for propagators" << std::endl;
129 XMLBufferWriter gauge_xml;
135 catch( std::bad_cast )
137 QDPIO::cerr <<
name <<
": caught dynamic cast error"
143 QDPIO::cerr <<
name <<
": std::map call failed: " << e
147 const multi1d<LatticeColorMatrix>&
u =
150 push(xml_out,
"sink_smear");
151 write(xml_out,
"update_no", update_no);
157 write(xml_out,
"Config_info", gauge_xml);
160 MesPlq(xml_out,
"Observables",
u);
165 XMLReader prop_file_xml, prop_record_xml;
166 LatticePropagator quark_propagator;
170 QDPIO::cout <<
"Attempt to read forward propagator" << std::endl;
182 read(prop_record_xml,
"/descendant::j_decay[1]",
j_decay);
185 write(xml_out,
"Prop_file_info", prop_file_xml);
186 write(xml_out,
"Prop_record_info", prop_record_xml);
188 catch (std::bad_cast)
190 QDPIO::cerr <<
name <<
": caught dynamic cast error"
196 QDPIO::cerr <<
name <<
": error extracting prop_header: " << e << std::endl;
206 multi1d<Double> forward_prop_corr = sumMulti(localNorm2(quark_propagator),
209 push(xml_out,
"Forward_prop_correlator");
210 write(xml_out,
"forward_prop_corr", forward_prop_corr);
223 XMLReader sinktop(xml_s);
231 (*sinkSmearing)(quark_propagator);
235 QDPIO::cerr <<
name <<
": Caught Exception creating sink: " << e << std::endl;
245 multi1d<Double> prop_corr = sumMulti(localNorm2(quark_propagator),
248 push(xml_out,
"SinkSmearedProp_correlator");
249 write(xml_out,
"sink_smeared_prop_corr", prop_corr);
257 XMLBufferWriter file_xml;
258 push(file_xml,
"sink_smear");
262 XMLBufferWriter record_xml;
265 if (prop_record_xml.count(
"/Propagator") != 0)
268 read(prop_record_xml,
"/Propagator", orig_header);
275 write(record_xml,
"SinkSmear", new_header);
289 QDPIO::cout <<
"Sink successfully updated" << std::endl;
291 catch (std::bad_cast)
293 QDPIO::cerr <<
name <<
": dynamic cast error"
299 QDPIO::cerr <<
name <<
": error message: " << e << std::endl;
307 QDPIO::cout <<
name <<
": total time = "
308 << snoop.getTimeInSeconds()
309 <<
" secs" << std::endl;
311 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
Class for counted reference semantics.
Inline task for sinking smearing propagators.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
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.
std::string uniqueId()
Return a unique id.
Class for counted reference semantics.
Inline sink_smear propagators.
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.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
Fourier transform phase factor support.
All make sink constructors.
Factory for producing quark prop sinks.
Mega structure holding a full forward sink-smeared prop.
PropSinkSmear_t sink_header
PropSourceConst_t source_header
std::string smeared_prop_id
struct Chroma::InlineSinkSmearEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)
Mega structure holding a full forward prop (not sink smeared)
PropSourceConst_t source_header