CHROMA
syssolver_qphix_clover_params.h
Go to the documentation of this file.
1 #ifndef __SYSSOLVER_QPHIX_CLOVER_PARAMS_H__
2 #define __SYSSOLVER_QPHIX_CLOVER_PARAMS_H__
3 
4 #include "chromabase.h"
5 #include "io/xml_group_reader.h"
8 #include <string>
9 #include "handle.h"
10 
11 namespace Chroma
12 {
13 
15  {
16  CG,
17  BICGSTAB
18  };
19 
20  namespace QPhiXSolverTypeEnv {
21  extern const std::string typeIDString;
22  extern bool registered;
23  bool registerAll(void);
24  }
25 
26  // A singleton to hold the typemap
28 
29  //! Read an WaveStateType enum
30  void read(XMLReader& r, const std::string& path, QPhiXSolverType& t);
31 
32  //! Write an WaveStateType enum
33  void write(XMLWriter& w, const std::string& path, const QPhiXSolverType& t);
34 
35 
36 
38  SysSolverQPhiXCloverParams(XMLReader& xml, const std::string& path);
40  RsdToleranceFactor = Real(10); //< Tolerate if the solution achived is better (less) than rsdToleranceFactor*RsdTarget
41  VerboseP = false;
42  Delta = Real(-1);
43  SolverType = CG;
44  };
45 
47  CloverParams = p.CloverParams;
48  AntiPeriodicT = p.AntiPeriodicT;
49  MaxIter = p.MaxIter;
50  Delta = p.Delta;
51  RsdTarget = p.RsdTarget;
52  VerboseP = p.VerboseP;
53  RsdToleranceFactor = p.RsdToleranceFactor;
54  SolverType = p.SolverType;
55  }
56 
57 
61  int MaxIter;
62  Real RsdTarget;
63  Real Delta;
64  bool VerboseP;
66  };
67 
68  void read(XMLReader& xml, const std::string& path, SysSolverQPhiXCloverParams& p);
69 
70  void write(XMLWriter& xml, const std::string& path,
71  const SysSolverQPhiXCloverParams& param);
72 
73 
74 
75 }
76 
77 #endif
78 
79 
Primary include file for CHROMA library code.
Parameters for Clover fermion action.
Enum std::map.
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.
Class for counted reference semantics.
int t
Definition: meslate.cc:37
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
SingletonHolder< EnumTypeMap< QPhiXSolverType > > theQPhiXSolverTypeMap
::std::string string
Definition: gtest.h:1979
Params for clover ferm acts.
SysSolverQPhiXCloverParams(const SysSolverQPhiXCloverParams &p)
Read an XML group as a std::string.