CHROMA
syssolver_mdagm_clover_qphix_w.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Solve a MdagM*psi=chi linear system by CG2
3  */
4 
9 #include "io/aniso_io.h"
10 
11 #include "handle.h"
14 #include "meas/glue/mesplq.h"
15 
16 namespace Chroma
17 {
18  namespace MdagMSysSolverQPhiXCloverEnv
19  {
20 
21  //! Anonymous namespace
22  namespace
23  {
24  //! Name to be used
25  const std::string name("QPHIX_CLOVER_INVERTER");
26 
27  //! Local registration flag
28  bool registered = false;
29  }
30 
31 
32 
33 
34 
35  // Double precision
37  const std::string& path,
38  Handle< FermState< LatticeFermion, multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> > > state,
39 
41  {
42  return new MdagMSysSolverQPhiXClover<LatticeFermion, LatticeColorMatrix>(A, state,SysSolverQPhiXCloverParams(xml_in, path));
43  }
44 
45  //! Register all the factories
46  bool registerAll()
47  {
48  bool success = true;
49  if (! registered)
50  {
52  registered = true;
53  }
54  return success;
55  }
56  }
57 
58 }
59 
Anisotropy parameters.
Support class for fermion actions and linear operators.
Definition: state.h:94
Class for counted reference semantics.
Definition: handle.h:33
static T & Instance()
Definition: singleton.h:432
Class for counted reference semantics.
Wilson Dslash linear operator.
static bool registered
Local registration flag.
const std::string name
Name to be used.
MdagMSystemSolver< LatticeFermion > * createFerm(XMLReader &xml_in, const std::string &path, Handle< FermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > state, Handle< LinearOperator< LatticeFermion > > A)
bool registerAll()
Register all the factories.
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
Periodic ferm state and a creator.
Register MdagM system solvers.
Solve a M*psi=chi linear system by BiCGStab.
Factory for producing system solvers for MdagM*psi = chi.