13 XMLReader paramtop(xml, path);
14 read(paramtop,
"./copyFrom",
p.source);
15 read(paramtop,
"./copyTo",
p.dest);
18 QDPIO::cout <<
"Caught exception reading XML: " << e << std::endl;
27 write(xml,
"copyFrom",
p.source);
28 write(xml,
"copyTo",
p.dest);
34 XMLReader paramtop(xml, path);
37 if( paramtop.count(
"./copyList") > 0 ) {
42 XMLReader integrator_xml_reader(paramtop,
"./Integrator");
43 std::ostringstream os;
44 integrator_xml_reader.print(os);
49 if( paramtop.count(
"anisoP") == 1 ) {
52 if( t_dir < 0 || t_dir >=
Nd ) {
53 QDPIO::cout <<
"Value of t_dir must be 0 <= t_dir < Nd. t_dir is " <<
t_dir << std::endl;
67 QDPIO::cout <<
"Caught Exception Reading XML: " << e << std::endl;
85 write(xml,
"tau0",
p.tau0);
86 write(xml,
"copyList",
p.copy_list);
87 std::istringstream int_is(
p.integrator_xml);
88 XMLReader int_reader(int_is);
91 write(xml,
"anisoP",
p.anisoP);
92 write(xml,
"t_dir",
p.t_dir);
93 write(xml,
"xi_mom",
p.xi_mom);
103 std::istringstream is(
p.integrator_xml );
104 XMLReader integrator_reader( is );
108 read(integrator_reader,
"/Integrator/Name", integrator_name);
111 QDPIO::cout <<
"Caught Exception while processing XML: " << e << std::endl;
116 multi1d<LatticeColorMatrix> > > h(
123 Real factor = Real(1) /
p.xi_mom;
132 multi1d<LatticeColorMatrix> > > MHandle;
134 QDPIO::cout <<
"Working through Copy List of length " <<
params.
copy_list.size() << std::endl;
145 QDPIO::cout <<
"Copying monomial: " << source_id <<
" to " << dest_id<< std::endl;
146 dest_mon->setInternalFields( *src_mon );
Primary include file for CHROMA library code.
Class for counted reference semantics.
LCMToplevelIntegratorParams params
void copyFields(void) const
Copy fields between the monomials of a copy list.
Handle< AbsComponentIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > top_integrator
LCMToplevelIntegrator(const LCMToplevelIntegratorParams &p)
Construct from parameters.
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.
Named object function std::map.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
A Struct for holding pairs of IDs in the copy list.
A Structure to hold the top level parameters.
multi1d< IDPair > copy_list
std::string integrator_xml
LCMToplevelIntegratorParams(XMLReader &xml, const std::string &path)
Construct from XML.