12 SysSolverQUDAMULTIGRIDWilsonParams::SysSolverQUDAMULTIGRIDWilsonParams(XMLReader& xml,
15 XMLReader paramtop(xml, path);
17 read(paramtop,
"MaxIter", MaxIter);
18 read(paramtop,
"RsdTarget", RsdTarget);
19 read(paramtop,
"WilsonParams", WilsonParams);
20 read(paramtop,
"AntiPeriodicT", AntiPeriodicT);
22 read(paramtop,
"Delta", Delta);
25 read(paramtop,
"SolverType", solverType);
27 if ( paramtop.count(
"Verbose") > 0 ) {
28 read(paramtop,
"Verbose", verboseP);
33 if ( paramtop.count(
"AsymmetricLinop") > 0 ) {
34 read(paramtop,
"AsymmetricLinop", asymmetricP);
40 if( paramtop.count(
"CudaPrecision") > 0 ) {
41 read(paramtop,
"CudaPrecision", cudaPrecision);
47 if( paramtop.count(
"CudaSloppyPrecision") > 0 ) {
48 read(paramtop,
"CudaSloppyPrecision", cudaSloppyPrecision);
54 if( paramtop.count(
"CudaReconstruct") > 0 ) {
55 read(paramtop,
"CudaReconstruct", cudaReconstruct);
61 if( paramtop.count(
"CudaSloppyReconstruct") > 0 ) {
62 read(paramtop,
"CudaSloppyReconstruct", cudaSloppyReconstruct);
68 if( paramtop.count(
"AxialGaugeFix") > 0 ) {
69 read(paramtop,
"AxialGaugeFix", axialGaugeP);
75 if( paramtop.count(
"SilentFail") > 0) {
76 read(paramtop,
"SilentFail", SilentFailP);
82 if( paramtop.count(
"RsdToleranceFactor") > 0 ) {
83 read(paramtop,
"RsdToleranceFactor", RsdToleranceFactor);
86 RsdToleranceFactor = Real(10);
89 if( paramtop.count(
"AutotuneDslash") > 0 ) {
90 read(paramtop,
"AutotuneDslash", tuneDslashP);
95 QDPIO::cout <<
"tuneDslasP = " << tuneDslashP << std::endl;
97 if( paramtop.count(
"Pipeline") > 0 ) {
98 read(paramtop,
"Pipeline", Pipeline);
104 if( paramtop.count(
"MULTIGRIDParams") > 0 ) {
106 MULTIGRIDParamsP =
true;
109 MULTIGRIDParamsP =
false;
124 write(xml,
"MaxIter",
p.MaxIter);
125 write(xml,
"RsdTarget",
p.RsdTarget);
126 write(xml,
"WilsonParams",
p.WilsonParams);
127 write(xml,
"AntiPeriodicT",
p.AntiPeriodicT);
128 write(xml,
"Delta",
p.Delta);
129 write(xml,
"SolverType",
p.solverType);
130 write(xml,
"Verbose",
p.verboseP);
131 write(xml,
"AsymmetricLinop",
p.asymmetricP);
132 write(xml,
"CudaPrecision",
p.cudaPrecision);
133 write(xml,
"CudaReconstruct",
p.cudaReconstruct);
134 write(xml,
"CudaSloppyPrecision",
p.cudaSloppyPrecision);
135 write(xml,
"CudaSloppyReconstruct",
p.cudaSloppyReconstruct);
136 write(xml,
"AxialGaugeFix",
p.axialGaugeP);
137 write(xml,
"SilentFail",
p.SilentFailP);
138 write(xml,
"RsdToleranceFactor",
p.RsdToleranceFactor);
139 write(xml,
"AutotuneDslash",
p.tuneDslashP);
140 write(xml,
"Pipeline",
p.Pipeline);
142 if(
p.MULTIGRIDParamsP ) {
143 write(xml,
"MULTIGRIDParams", *(
p.MULTIGRIDParams));
Primary include file for CHROMA library code.
Asqtad Staggered-Dirac operator.
void write(XMLWriter &xml, const std::string &path, const SysSolverQUDAMULTIGRIDWilsonParams &p)
void read(XMLReader &xml, const std::string &path, SysSolverQUDAMULTIGRIDWilsonParams &p)
push(xml_out,"Cooled_Topology")
Read an XML group as a std::string.