26 XMLReader paramtop(
in, path);
31 if( paramtop.count(
"version") == 1 )
32 read(paramtop,
"version", version);
43 if( paramtop.count(
"orthog_dir") == 1 ) {
44 read(paramtop,
"orthog_dir", orthog_dir);
48 QDPIO::cout <<
"Using Default value: orthog_dir = 3, spatial only smearing" << std::endl;
51 if (paramtop.count(
"smear_in_this_dirP") > 0)
53 QDPIO::cerr << __func__ <<
": found a smear_in_this_dirP in version 1. You need version 2 or higher" << std::endl;
60 if (orthog_dir >= 0 && orthog_dir <
Nd)
74 QDPIO::cerr << __func__ <<
": parameter version " << version
75 <<
" unsupported." << std::endl;
81 QDPIO::cout <<
"Failed to read stout action XML:" << e << std::endl;
88 QDPIO::cerr << __func__ <<
": invalid size of smear_in_this_dirP, expecting size=Nd" << std::endl;
133 write(xml,
"version", version);
134 write(xml,
"rho",
p.sm_fact);
135 write(xml,
"n_smear",
p.n_smear);
136 write(xml,
"smear_in_this_dirP",
p.smear_in_this_dirP);
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")
static QDP_ColorVector * in
multi1d< bool > smear_in_this_dirP
StoutFermStateParams()
Default constructor.