CHROMA
eoprec_constdet_constgauge_one_flavor_rat_monomial_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief One-flavor collection of even-odd preconditioned 4D ferm monomials
4  */
5 
6 #ifndef __prec_constgauge_one_flavor_rat_monomial_w_h__
7 #define __prec_constgauge_one_flavor_rat_monomial_w_h__
8 
10 
11 namespace Chroma{
12 
13 /*! @ingroup monomial */
14 namespace EvenOddPrecConstDetConstGaugeOneFlavorWilsonTypeFermRatMonomialEnv {
15 bool registerAll();
16 }
17 
18 
19 //! Wrapper class for 2-flavor even-odd prec ferm monomials
20 /*! @ingroup monomial
21  *
22  * Monomial is expected to be the same for these fermacts
23  */
26 {
27  public:
28  // Typedefs to save typing
29  typedef LatticeFermion T;
30  typedef multi1d<LatticeColorMatrix> P;
31  typedef multi1d<LatticeColorMatrix> Q;
32 
33  // Construct out of a parameter struct. Check against the desired FermAct name
35 
36 virtual void dsdq(P& F, const AbsFieldState<P,Q>& s){
38 
39 // Get at the ferion action
41 
42  //FA.getFermBC().modify(F);
43  ColorMatrix CF ;
44  for(int mu(0);mu<Nd;mu++){
45  CF=sum(F[mu])/Double(Layout::vol());F[mu]=CF;
46  }
47 }
48 
49  private:
50  // Hide empty constructor and =
53 
54  };
55 
56 
57 } //end namespace chroma
58 
59 #endif
Abstract field state.
Definition: field_state.h:27
void operator=(const EvenOddPrecConstDetConstGaugeOneFlavorWilsonTypeFermRatMonomial &)
EvenOddPrecConstDetConstGaugeOneFlavorWilsonTypeFermRatMonomial(const OneFlavorWilsonTypeFermRatMonomialParams &param_)
virtual void dsdq(P &F, const AbsFieldState< P, Q > &s)
Compute dsdq for the system...
const EvenOddPrecWilsonTypeFermAct< T, P, Q > & getFermAct(void) const
Replace thiw with PrecConstDet.
virtual void dsdq(P &F, const AbsFieldState< P, Q > &s)
Compute dsdq for the system...
Wilson-like fermion actions.
Definition: fermact.orig.h:344
int mu
Definition: cool.cc:24
One-flavor collection of even-odd preconditioned 4D ferm monomials.
Nd
Definition: meslate.cc:74
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double
Definition: gtest.h:7351
Double sum
Definition: qtopcor.cc:37
static INTERNAL_PRECISION F