CHROMA
syssolver_cg_params.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Solve a CG1 system
4  */
5 
6 #ifndef __syssolver_cg_params_h__
7 #define __syssolver_cg_params_h__
8 
9 #include "chromabase.h"
10 
11 
12 namespace Chroma
13 {
14 
15  //! Params for CG inverter
16  /*! \ingroup invert */
18  {
20  SysSolverCGParams(XMLReader& in, const std::string& path);
21 
22  Real RsdCG; /*!< CG residual */
23  int MaxCG; /*!< Maximum CG iterations */
24  int MinCG; /*!< Minimum CG iterations (useful for charm) */
25 
26  Real RsdCGRestart; /*!< CG residual for a possibly double precision restart. Only valid for some solvers eg CG-DWF */
27 
28  int MaxCGRestart; /*!< Max no of CG iterations for a possibly double precision restart. Only valid for some solvers, eg CG-DWF */
29  };
30 
31 
32  // Reader/writers
33  /*! \ingroup invert */
34  void read(XMLReader& xml, const std::string& path, SysSolverCGParams& param);
35 
36  /*! \ingroup invert */
37  void write(XMLWriter& xml, const std::string& path, const SysSolverCGParams& param);
38 
39 } // End namespace
40 
41 #endif
42 
Primary include file for CHROMA library code.
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.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static QDP_ColorVector * in
::std::string string
Definition: gtest.h:1979
Params for CG inverter.
SysSolverCGParams()
Default constructor.