20 namespace InlineEigenLimeColVecReadNamedObjEnv
47 XMLReader inputtop(xml, path);
58 XMLReader inputtop(xml, path);
69 return new InlineMeas(Params(xml_in, path));
97 XMLReader paramtop(xml_in, path);
99 if (paramtop.count(
"Frequency") == 1)
112 QDPIO::cerr << __func__ <<
": caught Exception reading XML: " << e << std::endl;
138 push(xml_out,
"eigeninfo_lime_colorvec_read_named_obj");
139 write(xml_out,
"update_no", update_no);
141 QDPIO::cout <<
name <<
": object reader" << std::endl;
155 XMLBufferWriter file_xml;
157 push(file_xml,
"MODMetaData");
159 write(file_xml,
"lattSize", QDP::Layout::lattSize());
163 file_str = file_xml.str();
166 typedef LatticeColorVector
T;
169 XMLReader MapObjReader(xml_s);
182 const int decay_dir =
Nd-1;
183 const int Lt = QDP::Layout::lattSize()[decay_dir];
190 XMLBufferWriter final_file_xml;
192 XMLBufferWriter final_record_xml;
193 push(final_record_xml,
"SubsetVectors");
194 push(final_record_xml,
"InfoArray");
197 XMLReader curr_file_xml;
198 XMLReader curr_record_xml;
201 QDPFileReader rdr(curr_file_xml, filename, QDPIO_SERIAL);
205 if (curr_record_xml.count(
"/LaplaceEigInfo/EigenValues") != 0)
207 else if (curr_record_xml.count(
"/LaplaceEigInfo/EigParams/EigenValues") != 0)
211 QDPIO::cerr << __func__ <<
": LaplaceEigInfo tag for EigenValues not found\n" << std::endl;
215 eigen->insert(
i,readpair);
217 write(final_record_xml,
"elem", curr_record_xml);
222 write(final_file_xml,
"Input", curr_file_xml);
227 pop(final_record_xml);
228 pop(final_record_xml);
235 QDPIO::cout <<
"Object successfully read: time= "
236 << swatch.getTimeInSeconds()
237 <<
" secs" << std::endl;
239 catch( std::bad_cast )
241 QDPIO::cerr <<
name <<
": cast error" << std::endl;
246 QDPIO::cerr <<
name <<
": error message: " << e << std::endl;
250 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
Primary include file for CHROMA library code.
Class for counted reference semantics.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Inline task to read an object from a named buffer.
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)
Object buffer.
void read(XMLReader &xml, const std::string &path, Params::NamedObject_t &input)
Object buffer.
bool registerAll()
aggregate everything
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
LinOpSysSolverMGProtoClover::T T
SubsetVectorWeight_t eigenValue
multi1d< std::string > file_names
struct Chroma::InlineEigenLimeColVecReadNamedObjEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineEigenLimeColVecReadNamedObjEnv::Params::File_t file
Holds of vectors and weights.