19 namespace InlineQQQEnv
51 XMLReader paramtop(xml, path);
54 read(paramtop,
"version", version);
68 QDPIO::cerr <<
"Input parameter version " << version <<
" unsupported." << std::endl;
85 write(xml,
"version", version);
99 XMLReader inputtop(xml, path);
126 XMLReader paramtop(xml_in, path);
128 if (paramtop.count(
"Frequency") == 1)
141 QDPIO::cerr << __func__ <<
": Caught Exception reading XML: " << e << std::endl;
174 XMLBufferWriter gauge_xml;
180 catch( std::bad_cast )
192 const multi1d<LatticeColorMatrix>&
u =
196 write(xml_out,
"update_no", update_no);
198 QDPIO::cout <<
InlineQQQEnv::name <<
": Generalized propagator generation" << std::endl;
210 write(xml_out,
"Config_info", gauge_xml);
212 push(xml_out,
"Output_version");
213 write(xml_out,
"out_version", 5);
217 MesPlq(xml_out,
"Observables",
u);
220 const int Nprops = 3;
223 QDPIO::cerr <<
"Error on input params - expecting 3 buffers" << std::endl;
233 multi1d<LatticePropagator> quark_propagator(Nprops);
238 for(
int i=0;
i < Nprops; ++
i)
244 quark_propagator[
i] =
248 XMLReader prop_file_xml, prop_record_xml;
258 catch( std::bad_cast )
275 write(xml_out,
"Propagator_input", qqq);
287 push(xml_out,
"SinkSmearedProp_correlator");
288 for(
int i=0;
i < Nprops; ++
i)
293 push(xml_out,
"elem");
294 write(xml_out,
"correlator_num",
i);
295 write(xml_out,
"sink_smeared_prop_corr", prop_corr);
303 multi1d<ComplexF> barprop_1d;
313 LatticePropagator q_tmp;
314 for(
int i=0;
i < Nprops; ++
i)
316 q_tmp = adj(
U) * quark_propagator[
i] *
U;
317 quark_propagator[
i] = q_tmp;
359 XMLBufferWriter file_xml;
360 push(file_xml,
"qqq");
364 XMLBufferWriter record_xml;
365 push(record_xml,
"QQQ");
366 write(record_xml,
".", qqq);
367 write(record_xml,
"Config_info", gauge_xml);
372 QDPIO_SINGLEFILE, QDPIO_SERIAL, QDPIO_OPEN);
373 write(to,record_xml,barprop_1d);
382 << snoop.getTimeInSeconds()
383 <<
" secs" << std::endl;
Inline measurement factory.
Construct all components of a baryon propagator.
Inline measurement of QQQ's.
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.
Basis rotation matrix from Dirac to Degrand-Rossi (and reverse)
SpinMatrixD DiracToDRMat()
The Dirac to Degrand-Rossi spin transformation matrix (and reverse)
void barcomp(QQQDense_t &barprop, const LatticePropagator &quark_propagator_1, const LatticePropagator &quark_propagator_2, const LatticePropagator &quark_propagator_3, const SftMom &phases, int t0, int bc_spec)
Construct all components of a baryon propagator.
void barcompSparse(QQQSparse_t &barprop, const LatticePropagator &quark_propagator_1, const LatticePropagator &quark_propagator_2, const LatticePropagator &quark_propagator_3, const multi1d< QQQSpinIndices_t > spin_indices, const SftMom &phases, int t0, int bc_spec)
Construct all components of a baryon propagator.
std::string uniqueId()
Return a unique id.
void proginfo(XMLWriter &xml)
Print out basic information about this program.
Inline construction of qqq_w.
Named object function std::map.
static bool registered
Local registration flag.
void write(XMLWriter &xml, const std::string &path, const InlineQQQEnv::Params::Param_t &input)
Param output.
void read(XMLReader &xml, const std::string &path, InlineQQQEnv::Params::Param_t &input)
Param input.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
multi1d< int > getFermActBoundary(const GroupXML_t &fermact)
Given a fermion action in std::string form, return the boundary.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
Print out basic info about this program.
Fourier transform phase factor support.
multi1d< std::string > prop_ids
multi1d< QQQSpinIndices_t > spin_indices
struct Chroma::InlineQQQEnv::Params::Param_t param
struct Chroma::InlineQQQEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)
Mega structure holding QQQ props.
multi1d< ForwardProp_t > forward_props
multi1d< QQQSpinIndices_t > spin_indices
multi1d< ComplexF > serialize()
Serialize generalized object.
multi1d< ComplexF > serialize()
Serialize generalized object.
multi1d< LatticeColorMatrix > U