CHROMA
ovext_constant_strategy.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Ovext rescale strategy
4  */
5 
6 #ifndef ovext_constant_strategy_h
7 #define ovext_constant_strategy_h
8 
9 #include "chromabase.h"
11 
12 namespace Chroma
13 {
14 
15  /*! @ingroup fermacts */
16  namespace OvExtConstantStrategyEnv
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  OvExtConstantStrategy(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  QDPIO::cout << "Tuning constant is: " << tuningConstant << std::endl;
41  int size=resP.size();
42  beta.resize(size);
43  for(int i=0; i < size; i++) {
45  QDPIO::cout << "beta["<<i<<"] = " << beta[i] << std::endl;
46  }
47  }
48  private:
49  const Real tuningConstant;
50  };
51 
52 }
53 
54 #endif
Primary include file for CHROMA library code.
OvExtConstantStrategy(const Real &tuningConstant_)
void operator()(multi1d< Real > &beta, const Real &coeffP, const multi1d< Real > &resP, const multi1d< Real > &resQ, const Real &Mass) const
bool registerAll()
Register all the factories.
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.