Bridge++  Ver. 2.0.2
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  void get_parameters(Parameters& params) const;
66 
67  void evolve(const double step_size, Field_G& iP, Field_G& U);
68 
69  // cache management
71  {
74  }
75 };
76 #endif
Integrator_Leapfrog::Integrator_Leapfrog
Integrator_Leapfrog(Integrator *update_p, Integrator *update_U)
constructor
Definition: integrator_Leapfrog.h:46
bridgeIO.h
Integrator::invalidate_cache
virtual void invalidate_cache()=0
Integrator_Leapfrog::set_parameters
void set_parameters(const Parameters &params)
Definition: integrator_Leapfrog.cpp:19
Parameters
Class for parameters.
Definition: parameters.h:46
Integrator_Leapfrog::set_parameter_Nsteps
void set_parameter_Nsteps(const std::vector< int > &Nsteps)
Definition: integrator_Leapfrog.cpp:85
Integrator_Leapfrog::m_Nstep
int m_Nstep
Definition: integrator_Leapfrog.h:38
Integrator_Leapfrog::set_parameter_level
void set_parameter_level(const int level)
Definition: integrator_Leapfrog.cpp:71
Integrator_Leapfrog::class_name
static const std::string class_name
Definition: integrator_Leapfrog.h:34
Integrator_Leapfrog::m_update_U
Integrator * m_update_U
Definition: integrator_Leapfrog.h:41
Integrator_Leapfrog::~Integrator_Leapfrog
~Integrator_Leapfrog()
destructor
Definition: integrator_Leapfrog.h:53
Integrator_Leapfrog
Standard leapfrog integrator to compose MD integrator.
Definition: integrator_Leapfrog.h:31
Integrator_Leapfrog::invalidate_cache
void invalidate_cache()
Definition: integrator_Leapfrog.h:70
Integrator_Leapfrog::evolve
void evolve(const double step_size, Field_G &iP, Field_G &U)
Definition: integrator_Leapfrog.cpp:100
Integrator_Leapfrog::set_parameter_Nstep
void set_parameter_Nstep(const int Nstep)
Definition: integrator_Leapfrog.cpp:78
integrator.h
Integrator_Leapfrog::m_level
int m_level
Definition: integrator_Leapfrog.h:37
Integrator_Leapfrog::get_parameters
void get_parameters(Parameters &params) const
Definition: integrator_Leapfrog.cpp:44
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Integrator
Base class of Integrator class family.
Definition: integrator.h:29
Integrator_Leapfrog::m_update_p
Integrator * m_update_p
Definition: integrator_Leapfrog.h:40
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512