CHROMA
ovext_neuberger_strategy.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Ovext Neuberger rescale strategy
4  */
5 
6 #ifndef ovext_neuberger_strategy_h
7 #define ovext_neuberger_strategy_h
8 
9 #include "chromabase.h"
11 
12 namespace Chroma {
13 
14  /*! @ingroup fermacts */
15  namespace OvExtNeubergerStrategyEnv
16  {
17  extern const std::string name;
18  bool registerAll();
19  }
20 
21 
22  //! Ovext Neuberger rescale strategy
23  /*! @ingroup fermacts */
25  {
26  public:
27  // Destructor is automatic
29 
31 
32  // Strategy: Rightmost col and Lowest Row contain
33  //
34  // sqrt( ( 1 - mu )/2 )
35  //
36  // which means beta should be set to
37  //
38  // (1-mu)/(2 resP[i] )
39 
40  void operator()( multi1d<Real>& beta,
41  const Real& coeffP,
42  const multi1d<Real>& resP,
43  const multi1d<Real>& resQ,
44  const Real& Mass) const {
45 
46  int size=resP.size();
47  beta.resize(size);
48  for(int i=0; i < size; i++) {
49  beta[i] = (Real(1)-Mass)/(Real(2)*resP[i]);
50  }
51  }
52  private:
53  };
54 
55 }
56 
57 #endif
Primary include file for CHROMA library code.
Ovext Neuberger rescale strategy.
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.