23 namespace InlineMakeSourceEnv
57 XMLReader inputtop(xml, path);
82 XMLReader paramtop(xml_in, path);
84 if (paramtop.count(
"Frequency") == 1)
96 if (paramtop.count(
"xml_file") != 0)
103 QDPIO::cerr << __func__ <<
": Caught Exception reading XML: " << e << std::endl;
135 push(xml_out,
"make_source");
136 write(xml_out,
"update_no", update_no);
137 write(xml_out,
"xml_file", xml_file);
140 XMLFileWriter xml(xml_file);
141 func(update_no, xml);
145 func(update_no, xml_out);
164 XMLBufferWriter gauge_xml;
165 multi1d<LatticeColorMatrix>
u;
172 catch( std::bad_cast )
189 push(xml_out,
"make_source");
190 write(xml_out,
"update_no", update_no);
195 write(xml_out,
"RNG", ran_seed);
201 write(xml_out,
"Config_info", gauge_xml);
204 MesPlq(xml_out,
"Observables",
u);
209 LatticePropagator quark_source;
214 XMLReader sourcetop(xml_s);
221 quark_source = (*sourceConstruction)(
u);
236 multi1d<Double> source_corr = sumMulti(localNorm2(quark_source),
239 push(xml_out,
"Source_correlator");
240 write(xml_out,
"source_corr", source_corr);
248 QDPIO::cout <<
"Attempt to update source" << std::endl;
250 XMLBufferWriter file_xml;
251 push(file_xml,
"make_source");
255 XMLBufferWriter record_xml;
261 prop_header.gauge_header = gauge_xml.printCurrentContext();
271 QDPIO::cout <<
"Source successfully update" << std::endl;
273 catch (std::bad_cast)
292 << snoop.getTimeInSeconds()
293 <<
" secs" << std::endl;
Inline measurement factory.
Class for counted reference semantics.
Inline task creating sources for quark inversion.
InlineMakeSourceParams params
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.
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.
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.
Class for counted reference semantics.
ForwardProp_t prop_header
Inline construction of make_source.
void savern(int iseed[4])
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)
Print out basic info about this program.
Fourier transform phase factor support.
All make source constructors.
Factory for producing quark prop sources.
struct Chroma::InlineMakeSourceParams::NamedObject_t named_obj
void write(XMLWriter &xml_out, const std::string &path)
Mega structure holding a propagator source.