CHROMA
eoprec_constdet_two_flavor_polyprec_monomial_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Two-flavor collection of even-odd preconditioned 4D ferm monomials
4  */
5 
6 #ifndef __prec_two_flavor_polyprec_monomial_w_h__
7 #define __prec_two_flavor_polyprec_monomial_w_h__
8 
12 
13 namespace Chroma
14 {
15 
16  /*! @ingroup monomial */
17  namespace EvenOddPrecConstDetTwoFlavorPolyPrecWilsonTypeFermMonomialEnv
18  {
19  bool registerAll();
20  }
21 
22 
23  //! Wrapper class for 2-flavor even-odd prec ferm monomials
24  /*! @ingroup monomial
25  *
26  * Monomial is expected to be the same for these fermacts
27  */
30  multi1d<LatticeColorMatrix>,
31  multi1d<LatticeColorMatrix>,
32  LatticeFermion>
33  {
34  public:
35  // Typedefs to save typing
36  typedef LatticeFermion T;
37  typedef multi1d<LatticeColorMatrix> P;
38  typedef multi1d<LatticeColorMatrix> Q;
39 
40  // Construct out of a parameter struct. Check against the desired FermAct name
42 
43  // Copy Constructor
45 
46  protected:
47 
48  T& getPhi(void) {
49  return phi;
50  }
51 
52  const T& getPhi(void) const {
53  return phi;
54  }
55 
57  return *fermact;
58  }
59 
61  return *chrono_predictor;
62  };
63 
64  //! Get parameters for the inverter
65  const GroupXML_t& getInvParams(void) const {
66  return inv_param;
67  }
68 
69  private:
70 
71  // Hide empty constructor and =
74 
75  // Pseudofermion field phi
76  T phi;
77 
78  // A handle for the EvenOddPrecWilsonFermAct
80 
81  // The parameters for the inversion
83 
85  };
86 
87 
88 } //end namespace chroma
89 
90 #endif
Abstract interface for a Chronological Solution predictor.
const T & getPhi(void) const
Accessor for pseudofermion with Pf index i (read only)
AbsChronologicalPredictor4D< T > & getMDSolutionPredictor(void)
Get the initial guess predictor.
EvenOddPrecConstDetTwoFlavorPolyPrecWilsonTypeFermMonomial(const EvenOddPrecConstDetTwoFlavorPolyPrecWilsonTypeFermMonomial &m)
const PolyWilsonTypeFermAct< T, P, Q > & getFermAct(void) const
Get at fermion action.
void operator=(const EvenOddPrecConstDetTwoFlavorPolyPrecWilsonTypeFermMonomial &)
Class for counted reference semantics.
Definition: handle.h:33
Polynomial Wilson-like fermion actions with derivatives.
Exact 2 degen flavor even-odd preconditioned fermact monomial.
Field state.
static int m[4]
Definition: make_seeds.cc:16
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Hold group xml and type id.
Two-flavor monomial params.