8 void read(XMLReader& xml,
11 multi1d<LatticeColorMatrix> > >& mon_handle )
13 XMLReader paramtop(xml, path);
16 read( paramtop,
"./Name", monomial_name);
20 QDPIO::cerr <<
"Error Reading Monommial: " << e << std::endl;
28 multi1d<LatticeColorMatrix> > >& mon_handle )
31 XMLReader paramtop(xml, path);
36 read( paramtop,
"./Name", monomial_name);
40 QDPIO::cerr <<
"Error Reading Monommial: " << e << std::endl;
47 QDPIO::cerr <<
"Failed to downcast monomial to exact monomial " << std::endl;
63 typedef multi1d<LatticeColorMatrix>
LCM;
66 XMLReader paramtop(xml, path);
69 XMLReader named_object_xml(paramtop,
"./NamedObject");
70 read(named_object_xml,
"./monomial_id", monomial_id);
73 QDPIO::cerr <<
"Failed to find NamedObject tag or monomial ID in readNamedMonomial" << std::endl << std::flush;
79 XMLBufferWriter file_xml;
80 push(file_xml,
"DummyFileXML");
83 XMLBufferWriter record_xml;
84 push(record_xml,
"Monomial");
85 record_xml << paramtop;
92 read( paramtop,
"./Name", monomial_name);
101 QDPIO::cerr <<
"Caught exception with message: " << e << std::endl;
111 XMLReader arraytop(xml, path);
112 int n_items = arraytop.count(
"./elem");
113 for(
int i=1;
i <= n_items;
i++) {
114 std::ostringstream os;
115 os <<
"./elem["<<
i <<
"]";
117 QDPIO::cout <<
"Read Monomial with monomial id: " << monomial_id <<std::endl;
122 QDPIO::cout <<
"Caught Exception with message: " << e << std::endl << std::flush;
Primary include file for CHROMA library code.
Abstract monomial class, for exact algorithms.
Class for counted reference semantics.
An abstract monomial class, for inexact algorithms.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void readNamedMonomialArray(XMLReader &xml, const std::string &path)
Read an array of named monomials from an XML reader. use factory to create the monomials and put them...
void readNamedMonomial(XMLReader &xml, const std::string &path, std::string &monomial_id)
Read a named monomial from an XML reader, usa factory to create and assign the pointer to a handle in...
Named object function std::map.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
multi1d< LatticeColorMatrix > LCM