11 XMLReader paramtop(xml, path);
15 QDPIO::cout <<
"Caught Exception Reading XML: " << e << std::endl;
30 write(xml,
"monomial_ids",
p.monomial_ids);
38 multi1d<LatticeColorMatrix> > > MHandle;
41 if ( monomial_ids.size() > 0 ) {
47 for(
int i=0;
i < monomial_ids.size();
i++) {
58 QDPIO::cout <<
"Lookup of " << monomial_ids[
i]
59 <<
" failed with error: " << e << std::endl;
65 QDPIO::cout <<
"ExactHamiltonian::create(): Trying to bind monomial with ID " << monomial_ids[
i] << std::endl;
70 catch( std::bad_cast ) {
71 QDPIO::cout <<
"Failed to cast monomial with ID: " << monomial_ids[
i] <<
" to an ExactMonomial in ExactHamiltonian::create() " << std::endl;
79 QDPIO::cout <<
"Attempting to construct Hamiltonian with 0 monomials."
void create(const multi1d< std::string > &monomial_ids)
This creates the hamiltonian. It is similar to the.
multi1d< Handle< ExactMon > > monomials
Class for counted reference semantics.
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.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
Parameter structure for new Hamiltonian.
multi1d< std::string > monomial_ids
ExactHamiltonianParams(XMLReader &xml, const std::string &path)
Constructor.