CHROMA
syssolver_quda_wilson_params.h
Go to the documentation of this file.
1 #ifndef __SYSSOLVER_QUDA_WILSON_PARAMS_H__
2 #define __SYSSOLVER_QUDA_WILSON_PARAMS_H__
3 
4 #include "chromabase.h"
5 #include "io/xml_group_reader.h"
9 
10 #include <string>
11 #include "handle.h"
12 
13 namespace Chroma
14 {
15 
16 
18  SysSolverQUDAWilsonParams(XMLReader& xml, const std::string& path);
20  solverType=CG;
25  asymmetricP = false; //< Use asymmetric version of the linear operator
26  axialGaugeP = false; //< Fix Axial Gauge?
27  SilentFailP = false; //< If set to true ignore lack of convergence. Default is 'loud'
28  RsdToleranceFactor = Real(10); //< Tolerate if the solution achived is better (less) than rsdToleranceFactor*RsdTarget
29  tuneDslashP = false ; //< v0.3 autotune feature
30  verboseP = false;
31  innerParamsP = false;
32  Pipeline = 1;
33 
34  };
36  WilsonParams = p.WilsonParams;
37  AntiPeriodicT = p.AntiPeriodicT;
38  MaxIter = p.MaxIter;
39  RsdTarget = p.RsdTarget;
40  Delta = p.Delta;
41  solverType = p.solverType;
42  verboseP = p.verboseP;
43  asymmetricP = p.asymmetricP;
44  cudaPrecision = p.cudaPrecision;
45  cudaReconstruct = p.cudaReconstruct;
46  cudaSloppyPrecision = p.cudaSloppyPrecision;
47  cudaSloppyReconstruct = p.cudaSloppyReconstruct;
48  axialGaugeP = p.axialGaugeP;
49  SilentFailP = p.SilentFailP;
50  RsdToleranceFactor = p.RsdToleranceFactor;
51  tuneDslashP = p.tuneDslashP;
52  innerParamsP = p.innerParamsP;
53  innerParams = p.innerParams;
54  Pipeline = p.Pipeline;
55  }
56 
57 
60  int MaxIter;
61  Real RsdTarget;
62  Real Delta;
64  bool verboseP;
75  int Pipeline;
76 
77  // Params for preconditioner
79 
80 
81  };
82 
83  void read(XMLReader& xml, const std::string& path, SysSolverQUDAWilsonParams& p);
84 
85  void write(XMLWriter& xml, const std::string& path,
86  const SysSolverQUDAWilsonParams& param);
87 
88 
89 
90 }
91 
92 #endif
93 
94 
Primary include file for CHROMA library code.
Class for counted reference semantics.
Definition: handle.h:33
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
QudaSolverType
Quda Solver type.
Definition: enum_quda_io.h:21
QudaReconsType
Quda Gauge Reconstruct type.
Definition: enum_quda_io.h:77
QudaPrecisionType
Quda Precision type.
Definition: enum_quda_io.h:50
Class for counted reference semantics.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
@ RECONS_12
Definition: enum_quda_io.h:80
::std::string string
Definition: gtest.h:1979
SysSolverQUDAWilsonParams(const SysSolverQUDAWilsonParams &p)
Handle< GCRInnerSolverParams > innerParams
Params for wilson ferm acts.
Wilson fermion action parameters.
Read an XML group as a std::string.