21 namespace InlineWilsonFlowEnv
26 XMLReader inputtop(xml, path);
47 XMLReader inputtop(xml, path);
66 QDPIO::cerr <<
"WILSON_FLOW: Input version " << input.
version
67 <<
" unsupported." << std::endl;
108 namespace InlineWilsonFlowEnv
112 AbsInlineMeasurement* createMeasurement(XMLReader& xml_in,
115 return new InlineMeas(Params(xml_in, path));
145 XMLReader paramtop(xml_in, path);
147 if (paramtop.count(
"Frequency") == 1)
159 if (paramtop.count(
"xml_file") != 0)
166 QDPIO::cerr << __func__ <<
": Caught Exception reading XML: " << e << std::endl;
183 push(xml_out,
"WilsonFlow");
184 write(xml_out,
"update_no", update_no);
185 write(xml_out,
"xml_file", xml_file);
188 XMLFileWriter xml(xml_file);
189 func(update_no, xml);
193 func(update_no, xml_out);
210 push(xml_out,
"WilsonFlow");
211 write(xml_out,
"update_no", update_no);
213 QDPIO::cout <<
name <<
": Wilson Flowing a configuration" << std::endl;
217 push(xml_out,
"Output_version");
218 write(xml_out,
"out_version", 1);
226 multi1d<LatticeColorMatrix>
u ;
228 push(xml_out,
"GaugeFieldInfo");
229 XMLBufferWriter gauge_xml;
235 catch( std::bad_cast )
237 QDPIO::cerr <<
name <<
": caught dynamic cast error" << std::endl;
242 QDPIO::cerr <<
name <<
": std::map call failed: " << e << std::endl;
246 write(xml_out,
"Config_info", gauge_xml);
252 MesPlq(xml_out,
"GaugeObservables",
u);
256 multi1d<LatticeColorMatrix> wf_u =
u ;
263 MesPlq(xml_out,
"WilsonFlowGaugeObservables", wf_u);
268 XMLBufferWriter file_xml, record_xml;
269 push(file_xml,
"gauge");
270 write(file_xml,
"id",
int(0));
273 record_xml << gauge_xml;
285 QDPIO::cout <<
name <<
": total time = "
286 << snoop.getTimeInSeconds()
287 <<
" secs" << std::endl;
289 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
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.
void wilson_flow(XMLWriter &xml, multi1d< LatticeColorMatrix > &u, int nstep, Real wflow_eps, int t_dir, const multi1d< bool > &smear_dirs)
Compute the Wilson flow.
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.
Wilson Flow a configuration.
Named object function std::map.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
void write(XMLWriter &xml, const std::string &path, const Params::NamedObject_t &input)
write output – gauge fields
void read(XMLReader &xml, const std::string &path, Params::NamedObject_t &input)
Read input – gauge fields.
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.
multi1d< bool > smear_dirs
struct Chroma::InlineWilsonFlowEnv::Params::Param_t param
struct Chroma::InlineWilsonFlowEnv::Params::NamedObject_t named_obj