CHROMA
multi_syssolver_mdagm_cg_clover_qphix_w.cc
Go to the documentation of this file.
1 // $Id: syssolver_mdagm_quda_clover.cc,v 1.6 2009-10-09 13:59:46 bjoo Exp $
2 /*! \file
3  * \brief Solve a MdagM*psi=chi linear system by CG2
4  */
5 
10 #include "io/aniso_io.h"
11 
12 #include "handle.h"
15 #include "meas/glue/mesplq.h"
16 
17 namespace Chroma
18 {
19  namespace MdagMMultiSysSolverQPhiXCloverEnv
20  {
21 
22  //! Anonymous namespace
23  namespace
24  {
25  //! Name to be used
26  const std::string name("QPHIX_CLOVER_MULTI_SHIFT_INVERTER");
27 
28  //! Local registration flag
29  bool registered = false;
30  }
31 
32 
33 
34 
35  // Floating Precision
37  const std::string& path,
38  Handle< FermState< LatticeFermion, multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> > > state,
39 
41  {
42  return new MdagMMultiSysSolverQPhiXClover<LatticeFermion, LatticeColorMatrix>(A, state,MultiSysSolverQPhiXCloverParams(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.
Register MdagM system solvers.
Solve a M*psi=chi linear system by BiCGStab.
Factory for producing system solvers for MdagM*psi = chi.
static bool registered
Local registration flag.
const std::string name
Name to be used.
MdagMMultiSystemSolver< LatticeFermion > * createFerm(XMLReader &xml_in, const std::string &path, Handle< FermState< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > state, Handle< LinearOperator< LatticeFermion > > A)
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.