CHROMA
syssolver_linop_clover_qphix_iter_refine_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 LinOpSysSolverQPhiXCloverIterRefineEnv
19  {
20 
21  //! Anonymous namespace
22  namespace
23  {
24  //! Name to be used
25  const std::string name("QPHIX_CLOVER_ITER_REFINE_BICGSTAB_INVERTER");
26 
27  //! Local registration flag
28  bool registered = false;
29  }
30 
31 
32  // Double precision
34  const std::string& path,
35  Handle< FermState< LatticeFermion, multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> > > state,
36 
38  {
39  return new LinOpSysSolverQPhiXCloverIterRefine<LatticeFermion, LatticeColorMatrix>(A, state,SysSolverQPhiXCloverParams(xml_in, path));
40  }
41 
42  //! Register all the factories
43  bool registerAll()
44  {
45  bool success = true;
46  if (! registered)
47  {
49  registered = true;
50  }
51  return success;
52  }
53  }
54 
55 }
56 
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.
LinOpSystemSolver< 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.
Register linop system solvers that solve M*psi=chi.
Solve a M*psi=chi linear system by BiCGStab.
Factory for solving M*psi=chi where M is not hermitian or pos. def.