CHROMA
ovext_const_div_by_resp_strategy.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Ovext rescale strategy
4  */
5 
6 #ifndef ovext_const_div_by_resp_h
7 #define ovext_const_div_by_resp_h
8 
9 #include "chromabase.h"
11 
12 namespace Chroma
13 {
14 
15  /*! @ingroup fermacts */
16  namespace OvExtConstDivByResPStrategyEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20  }
21 
22 
23  //! Ovext rescale strategy
24  /*! @ingroup fermacts */
26  {
27  public:
28  // Destructor is automatic
30 
31  // Construct from program
32  OvExtConstDivByResPStrategy(const Real& tuningConstant_ ): tuningConstant(tuningConstant_) {}
33 
34 
35  void operator()( multi1d<Real>& beta,
36  const Real& coeffP,
37  const multi1d<Real>& resP,
38  const multi1d<Real>& resQ,
39  const Real& Mass) const {
40  int size=resP.size();
41  beta.resize(size);
42  for(int i=0; i < size; i++) {
43  beta[i] = Real(1)/ (tuningConstant*resP[i]);
44  }
45  }
46  private:
47  const Real tuningConstant;
48  };
49 
50 }
51 
52 #endif
Primary include file for CHROMA library code.
void operator()(multi1d< Real > &beta, const Real &coeffP, const multi1d< Real > &resP, const multi1d< Real > &resQ, const Real &Mass) const
OvExtConstDivByResPStrategy(const Real &tuningConstant_)
static const LatticeInteger & beta(const int dim)
Definition: stag_phases_s.h:47
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > & Mass
Definition: pbg5p_w.cc:29
int i
Definition: pbg5p_w.cc:55
::std::string string
Definition: gtest.h:1979
Ovext tuning strategy.