Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
integrator_Leapfrog.h
Go to the documentation of this file.
1 
14 #ifndef INTEGRATOR_LEAPFROG_INCLUDED
15 #define INTEGRATOR_LEAPFROG_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 
40  Integrator *m_update_p; // momentum updator
41  Integrator *m_update_U; // link variable updator or next level integrator
42 
43  public:
44 
47  : m_level(0), m_Nstep(0),
48  m_update_p(update_p), m_update_U(update_U)
49  {
50  }
51 
54  {
55  }
56 
57  void set_parameters(const Parameters& params);
58  void set_parameters(const int level, const int Nstep);
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 
66  void evolve(const double step_size, Field_G& iP, Field_G& U);
67 
68  // cache management
70  {
73  }
74 };
75 #endif
~Integrator_Leapfrog()
destructor
BridgeIO vout
Definition: bridgeIO.cpp:503
Standard leapfrog integrator to compose MD integrator.
void set_parameter_Nstep(const int Nstep)
void set_parameter_Nsteps(const std::vector< int > &Nsteps)
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
static const std::string class_name
Integrator_Leapfrog(Integrator *update_p, Integrator *update_U)
constructor
void set_parameter_level(const int level)
void evolve(const double step_size, Field_G &iP, Field_G &U)