66 XMLReader
reader(xml_in, path);
69 if(
reader.count(
"NWilsVec") != 0 )
73 QDPIO::cerr <<
"Caught exception : " << e << std::endl;
87 if(
reader.count(
"ApproxMin") == 0 )
92 if(
reader.count(
"ApproxMax") == 0 )
98 QDPIO::cerr <<
"Caught exception : " << e << std::endl;
106 if(
reader.count(
"Eig") == 1 ) {
107 if(
reader.count(
"Ritz") == 1 ) {
108 QDPIO::cerr <<
"Cannot specify both Eig and Ritz " << std::endl;
118 QDPIO::cerr <<
"Caught exception: " << e << std::endl;
123 else if (
reader.count(
"Ritz") == 1 ) {
124 if(
reader.count(
"Eig") == 1 ) {
125 QDPIO::cerr <<
"Cannot specify both Eig and Ritz " << std::endl;
130 XMLReader ritzreader(
reader,
"Ritz");
132 read(ritzreader,
"RsdR", ritzery.
RsdR);
133 read(ritzreader,
"RsdA", ritzery.
RsdA);
138 read(ritzreader,
"MaxKS", ritzery.
MaxKS);
139 read(ritzreader,
"MaxCG", ritzery.
MaxCG);
145 QDPIO::cerr <<
"Caught exception: " << e << std::endl;
153 QDPIO::cerr <<
"Must specify either Eig for loadable eigenvalues or "
154 <<
"Ritz Parameters for compuing eigenvalues" << std::endl;
176 write( xml_out,
"NWilsVec",
info.getNWilsVec());
178 if(
info.getNWilsVec() == 0 ) {
179 write(xml_out,
"ApproxMin",
info.getApproxMin());
180 write(xml_out,
"ApproxMax",
info.getApproxMax());
183 if(
info.loadEigVec() ) {
184 write(xml_out,
"Eig",
info.getEigenIO());
186 else if (
info.computeEigVec() ) {
190 push(xml_out,
"Ritz");
206 QDPIO::cerr <<
"Must specify either Eig for loadable eigenvalues or "
207 <<
"Ritz Parameters for compuing eigenvalues" << std::endl;
Primary include file for CHROMA library code.
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.
Handle< FermBC< LatticeStaggeredFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the FermionAction readers.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
Struct for dumping the eigenvalues/vectors.
QDP_volfmt_t eigen_volfmt
Struct for parameters needed for a Ritz KS type solve.