Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
integrator_Omelyan.h
Go to the documentation of this file.
1 
14 #ifndef INTEGRATOR_OMELYAN_INCLUDED
15 #define INTEGRATOR_OMELYAN_INCLUDED
16 
17 #include "integrator.h"
18 
19 #include "IO/bridgeIO.h"
20 using Bridge::vout;
21 
23 
32 {
33  public:
34  static const std::string class_name;
35 
36  private:
37  int m_level; // level number
38  int m_Nstep; // number of steps
39  double m_lambda; // Omelyan's optimized parameter
40 
41  Integrator *m_update_p; // momentum updator
42  Integrator *m_update_U; // link variable updator or next level integrator
43 
44  public:
45 
48  : m_level(0), m_Nstep(0),
49  m_lambda(0.0),
50  m_update_p(update_p), m_update_U(update_U)
51  {
52  }
53 
56 
57  void set_parameters(const Parameters& params);
58  void set_parameters(const int level, const int Nstep, const double lambda_Omelyan);
59 
60  void set_parameter_level(const int level);
61 
62  void set_parameter_Nstep(const int Nstep);
63  void set_parameter_Nsteps(const std::vector<int>& Nsteps);
64 
65  void set_parameter_lambda(const double lambda_omelyan);
66 
67  void evolve(const double step_size, Field_G& iP, Field_G& U);
68 
69  // cache management
71  {
74  }
75 };
76 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
void set_parameter_Nsteps(const std::vector< int > &Nsteps)
void set_parameter_Nstep(const int Nstep)
Integrator_Omelyan(Integrator *update_p, Integrator *update_U)
constructor
~Integrator_Omelyan()
destructor
void set_parameters(const Parameters &params)
Class for parameters.
Definition: parameters.h:46
virtual void invalidate_cache()=0
Base class of Integrator class family.
Definition: integrator.h:29
SU(N) gauge field.
Definition: field_G.h:38
Omelyan integrator to compose MD integrator.
void set_parameter_lambda(const double lambda_omelyan)
static const std::string class_name
void evolve(const double step_size, Field_G &iP, Field_G &U)
void set_parameter_level(const int level)