21 XMLReader paramtop(xml, path);
24 read(paramtop,
"version", version);
30 if (paramtop.count(
"GaugeState") != 0)
35 QDPIO::cerr <<
"InlinePlaquetteEnv::Params::Param_t: " << version
36 <<
" unsupported." << std::endl;
47 write(xml,
"version", version);
57 XMLReader inputtop(xml, path);
73 namespace InlinePlaquetteEnv
116 XMLReader paramtop(xml_in, path);
118 if (paramtop.count(
"Frequency") == 1)
130 if (paramtop.count(
"xml_file") != 0) {
136 QDPIO::cerr <<
"Caught Exception reading XML: " << e << std::endl;
149 push( xml_out,
"Plaquette");
150 write(xml_out,
"update_no", update_no);
151 write(xml_out,
"xml_file", xml_file);
154 XMLFileWriter xml(xml_file);
155 func(update_no, xml);
159 func(update_no, xml_out);
171 multi1d<LatticeColorMatrix>
u;
172 XMLBufferWriter gauge_xml;
182 XMLReader gaugetop(xml_s);
197 catch( std::bad_cast )
210 push(xml_out,
"Plaquette");
211 write(xml_out,
"update_no", update_no);
214 multi2d<Double> plane_plaq;
223 write(xml_out,
"plane_01_plaq", plane_plaq[0][1]);
228 write(xml_out,
"plane_02_plaq", plane_plaq[0][2]);
229 write(xml_out,
"plane_12_plaq", plane_plaq[1][2]);
234 write(xml_out,
"plane_03_plaq", plane_plaq[0][3]);
235 write(xml_out,
"plane_13_plaq", plane_plaq[1][3]);
236 write(xml_out,
"plane_23_plaq", plane_plaq[2][3]);
Inline measurement factory.
Class for counted reference semantics.
void func(const unsigned long update_no, XMLWriter &xml_out)
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
Functions to set and get default gauge field.
All gauge create-state method.
Gauge create state factory.
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 makeXMLFileName(std::string xml_file, unsigned long update_no)
Return a xml file name for inline measurements.
std::string getId()
Get the default gauge field named object id.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Named object function std::map.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
GroupXML_t nullXMLGroup()
Returns a simple createstate group.
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)
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
FloatingPoint< double > Double
struct Chroma::InlinePlaquetteEnv::Params::Param_t param
struct Chroma::InlinePlaquetteEnv::Params::NamedObject_t named_obj