CHROMA
syssolver_mdagm_cg_timing.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Solve a MdagM*psi=chi linear system by CG2
3  */
4 
7 
9 
10 namespace Chroma
11 {
12 
13  //! CG2 system solver namespace
14  namespace MdagMSysSolverCGTimingsEnv
15  {
16  //! Callback function
18  const std::string& path,
19  Handle< FermState< LatticeFermion, multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> > > state,
20 
22  {
24  }
25 
26  //! Name to be used
27  const std::string name("CG_INVERTER_TIMING");
28 
29  //! Local registration flag
30  static bool registered = false;
31 
32  //! Register all the factories
33  bool registerAll()
34  {
35  bool success = true;
36  if (! registered)
37  {
39  registered = true;
40  }
41  return success;
42  }
43  }
44 }
Support class for fermion actions and linear operators.
Definition: state.h:94
Class for counted reference semantics.
Definition: handle.h:33
Solve a CG2 system. Here, the operator is NOT assumed to be hermitian.
static T & Instance()
Definition: singleton.h:432
MdagMSystemSolver< LatticeFermion > * createFerm(XMLReader &xml_in, const std::string &path, Handle< FermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > state, Handle< LinearOperator< LatticeFermion > > A)
Callback function.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
const std::string name("CG_INVERTER_TIMING")
Name to be used.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
A(A, psi, r, Ncb, PLUS)
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
Definition: pbg5p_w.cc:28
::std::string string
Definition: gtest.h:1979
Params for CG inverter.
Register MdagM system solvers.
Solve a MdagM*psi=chi linear system by CG2.
Factory for producing system solvers for MdagM*psi = chi.