Bridge++  Ver. 1.2.x
 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 "action.h"
18 #include "director.h"
19 #include "randomNumbers.h"
20 #include "integrator.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
50  double m_lambda; // Omelyan's optimized parameter
52  std::valarray<Action *> m_action; // actions
53 
54  public:
56  Integrator_Omelyan(std::valarray<Action *> action,
57  Integrator *integ_next)
58  {
59  m_action.resize(action.size());
60  for (int i = 0; i < action.size(); ++i) {
61  m_action[i] = action[i];
62  }
63  m_integ_next = integ_next;
64  m_Estep = 0.0;
65  m_Nstep = 0;
66  m_lambda = 0.0;
67  }
68 
71 
72  void set_parameters(const Parameters& params);
73  void set_parameters(int level, double Estep, int Nstep,
74  double lambda_Omelyan);
75 
76  void evolve(Field_G& iP, Field_G& U);
77 };
78 #endif
BridgeIO vout
Definition: bridgeIO.cpp:207
void evolve(Field_G &iP, Field_G &U)
~Integrator_Omelyan()
destructor
void set_parameters(const Parameters &params)
Class for parameters.
Definition: parameters.h:40
Base class of Integrator class family.
Definition: integrator.h:31
std::valarray< Action * > m_action
SU(N) gauge field.
Definition: field_G.h:36
static const std::string class_name
Integrator_Omelyan(std::valarray< Action * > action, Integrator *integ_next)
constructor with actions and next level integrator.
Integrator * m_integ_next
Omelyan integrator to compose MD integrator.