CHROMA
unprec_two_flavor_monomial_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Two-flavor collection of unpreconditioned 4D ferm monomials
4  */
5 
6 #ifndef __unprec_two_flavor_monomial_w_h__
7 #define __unprec_two_flavor_monomial_w_h__
8 
12 
13 namespace Chroma
14 {
15 
16  /*! @ingroup monomial */
17  namespace UnprecTwoFlavorWilsonTypeFermMonomialEnv
18  {
19  bool registerAll();
20  }
21 
22 
23  //! Wrapper class for 2-flavor unprec 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 
44  // Copy Constructor
46 
47  protected:
48 
49  T& getPhi(void) {
50  // If phi are changed we must reset the chrono predictor
51  return phi;
52  }
53 
54  const T& getPhi(void) const {
55  return phi;
56  }
57 
58  const WilsonTypeFermAct<T,P,Q>& getFermAct(void) const {
59  return *fermact;
60  }
61 
62  //! Get parameters for the inverter
63  const GroupXML_t& getInvParams(void) const {
64  return inv_param;
65  }
66 
68  return *chrono_predictor;
69  }
70 
71  private:
72  // Hide empty constructor and =
75 
76  // Pseudofermion field phi
77  LatticeFermion phi;
78 
79  // A handle for the UnprecWilsonFermAct
81 
82  // The parameters for the inversion
84 
85  // A handle for the chrono predictor
87 
88 
89  };
90 
91 
92 } //end namespace chroma
93 
94 
95 
96 #endif
Class for counted reference semantics.
Definition: handle.h:33
Exact 2 degen flavor unpreconditioned fermact monomial.
Wrapper class for 2-flavor unprec ferm monomials.
T & getPhi(void)
mutator for pseudofermion with Pf index i
void operator=(const UnprecTwoFlavorWilsonTypeFermMonomial &)
const WilsonTypeFermAct< T, P, Q > & getFermAct(void) const
Get at fermion action.
const GroupXML_t & getInvParams(void) const
Get parameters for the inverter.
const T & getPhi(void) const
Accessor for pseudofermion with Pf index i (read only)
UnprecTwoFlavorWilsonTypeFermMonomial(const UnprecTwoFlavorWilsonTypeFermMonomial &m)
Handle< const WilsonTypeFermAct< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > fermact
AbsChronologicalPredictor4D< LatticeFermion > & getMDSolutionPredictor(void)
Get at the chronological predcitor.
Handle< AbsChronologicalPredictor4D< LatticeFermion > > chrono_predictor
Wilson-like fermion actions.
Definition: fermact.orig.h:344
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.
Two flavor Monomials - gauge action or fermion binlinear contributions for HMC.