18 namespace InlineStaggeredFermStateEnv
23 XMLReader paramtop(xml, path);
26 read(paramtop,
"version", version);
35 QDPIO::cerr <<
"InlineMeasParams::Param_t: " << version
36 <<
" unsupported." << std::endl;
47 write(xml,
"version", version);
57 XMLReader inputtop(xml, path);
80 Params
p(xml_in, path);
81 return new InlineMeas(
p);
113 XMLReader paramtop(xml_in, path);
115 if (paramtop.count(
"Frequency") == 1)
128 QDPIO::cerr <<
"Caught Exception reading XML: " << e << std::endl;
157 push(xml_out,
"apply_ferm_state");
158 write(xml_out,
"update_no", update_no);
163 push(xml_out,
"Output_version");
164 write(xml_out,
"out_version", 1);
168 multi1d<LatticeColorMatrix>
u;
169 XMLBufferWriter gauge_xml;
176 catch( std::bad_cast )
178 QDPIO::cerr <<
name <<
": caught dynamic cast error"
184 QDPIO::cerr <<
name <<
": std::map call failed: " << e
190 write(xml_out,
"Config_info", gauge_xml);
193 MesPlq(xml_out,
"Observables",
u);
201 XMLReader fermtop(xml_s);
216 catch( std::bad_cast )
218 QDPIO::cerr <<
name <<
": caught dynamic cast error"
224 QDPIO::cerr <<
name <<
": std::map call failed: " << e
230 MesPlq(xml_out,
"Link_observables",
u);
234 XMLBufferWriter file_xml, record_xml;
235 push(file_xml,
"gauge");
236 write(file_xml,
"id",
int(0));
238 record_xml << gauge_xml;
250 QDPIO::cout <<
name <<
": total time = "
251 << snoop.getTimeInSeconds()
252 <<
" secs" << std::endl;
254 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
Class for counted reference semantics.
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
Functions to set and get default gauge field.
All ferm create-state method.
Fermion create state factory.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Inline ferm state application.
Named object function std::map.
static bool registered
Local registration flag.
void read(XMLReader &xml, const std::string &path, InlineStaggeredFermStateEnv::Params::Param_t ¶m)
FermState input.
bool registerAll()
Register all the factories.
void write(XMLWriter &xml, const std::string &path, const InlineStaggeredFermStateEnv::Params::Param_t ¶m)
FermState output.
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
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineStaggeredFermStateEnv::Params::Param_t param
struct Chroma::InlineStaggeredFermStateEnv::Params::NamedObject_t named_obj