19 XMLReader paramtop(xml, path);
22 read(paramtop,
"version", version);
31 if (paramtop.count(
"ichiral") == 1) {
40 QDPIO::cerr <<
"InlinePsiBarPsiParams::Param_t: " << version
41 <<
" unsupported." << std::endl;
51 write(xml,
"version", version);
63 XMLReader inputtop(xml, path);
78 namespace InlinePsiBarPsiEnv
116 XMLReader paramtop(xml_in, path);
118 if (paramtop.count(
"Frequency") == 1)
129 QDPIO::cerr <<
"Caught Exception reading XML: " << e << std::endl;
138 push(xml_out,
"PsiBarPsi");
139 write(xml_out,
"update_no", update_no);
142 func(update_no, xml_out);
153 XMLBufferWriter gauge_xml;
155 multi1d<LatticeColorMatrix>
u;
160 catch ( std::bad_cast ) {
161 QDPIO::cerr <<
name <<
": caught dynamic cast error" << std::endl;
165 QDPIO::cerr <<
name <<
": std::map call failed: " << e << std::endl;
171 write(xml_out,
"Config_info", gauge_xml);
176 XMLReader fermacttop(xml_s);
184 QDPIO::cout <<
"Try the various factories" << std::endl;
186 typedef LatticeFermion
T;
187 typedef multi1d<LatticeColorMatrix>
P;
188 typedef multi1d<LatticeColorMatrix>
Q;
197 QDPIO::cout <<
"Suitable factory found: do the measurements" << std::endl;
205 QDPIO::cout <<
"PsiBarPsi computed: time= "
206 << swatch.getTimeInSeconds()
207 <<
" secs" << std::endl;
209 catch ( std::bad_cast )
211 QDPIO::cerr <<
name <<
": caught dynamic cast error"
217 QDPIO::cout <<
name <<
": caught exception with fermion action: " << e << std::endl;
222 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
Class for counted reference semantics.
void func(unsigned long update_no, XMLWriter &xml_out)
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
Class structure for fermion actions.
Fermion action factories.
All Wilson-type fermion actions.
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.
void proginfo(XMLWriter &xml)
Print out basic information about this program.
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.
multi1d< LatticeColorMatrix > P
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::Q Q
push(xml_out,"Condensates")
LinOpSysSolverMGProtoClover::T T
void MesPbp(Handle< SystemSolver< LatticeFermion > > qprop, Handle< FermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > state, const multi1d< Real > &Mass, const int ichiral, XMLWriter &xml_out, const std::string &xml_group, const std::string &FermAct)
Calculates noise estimator for psi_bar_psi.
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
const WilsonTypeFermAct< multi1d< LatticeFermion > > & S_f
FloatingPoint< double > Double
Print out basic info about this program.
struct Chroma::InlinePsiBarPsiEnv::Params::NamedObject_t named_obj
struct Chroma::InlinePsiBarPsiEnv::Params::Param_t param