Bridge++  Ver. 1.2.x
 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 "action.h"
18 #include "director.h"
19 #include "integrator.h"
20 #include "randomNumbers.h"
21 
22 #include "bridgeIO.h"
23 using Bridge::vout;
24 
26 
33 //- parameters class
35 {
36  public:
38 };
39 //- end
40 
42 {
43  public:
44  static const std::string class_name;
45 
46  private:
47  double m_Estep; // step size of each molecular dynamical evolution
48  int m_Nstep; // number of steps
49  int m_level; // level number
51  std::valarray<Action *> m_action; // actions
52 
53  public:
55  Integrator_Leapfrog(std::valarray<Action *> action,
56  Integrator *integ_next)
57  {
58  m_action.resize(action.size());
59  for (int i = 0; i < action.size(); ++i) {
60  m_action[i] = action[i];
61  }
62  m_integ_next = integ_next;
63  m_Estep = 0.0;
64  m_Nstep = 0;
65  }
66 
69  {
70  // std::cout << "byebye from integrator_leapfrog.\n";
71  }
72 
73  void set_parameters(const Parameters& params);
74  void set_parameters(int level, double Estep, int Nstep);
75 
76  void evolve(Field_G& iP, Field_G& U);
77 };
78 #endif
~Integrator_Leapfrog()
destructor
BridgeIO vout
Definition: bridgeIO.cpp:207
void set_parameters(const Parameters &params)
Class for parameters.
Definition: parameters.h:40
Base class of Integrator class family.
Definition: integrator.h:31
SU(N) gauge field.
Definition: field_G.h:36
Standard leapfrog integrator to compose MD integrator.
static const std::string class_name
std::valarray< Action * > m_action
void evolve(Field_G &iP, Field_G &U)
Integrator_Leapfrog(std::valarray< Action * > action, Integrator *integ_next)
constructor with actions and next level integrator.