Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
builder_Integrator.h
Go to the documentation of this file.
1 
14 #ifndef BUILDER_INTEGRATOR_INCLUDED
15 #define BUILDER_INTEGRATOR_INCLUDED
16 
17 #include <cassert>
18 
19 #include "action_list.h"
20 #include "integrator.h"
21 
22 
23 #include "IO/bridgeIO.h"
24 using Bridge::vout;
25 
27 
41 {
42  public:
43  static const std::string class_name;
44 
45  protected:
47 
48  private:
49  std::vector<int> m_Nstep;
50 
51  int m_Nprec;
53 
54  std::string m_str_integrator_type;
55 
57  std::vector<Director *> m_director;
58 
59 
60  std::vector<Integrator *> m_integs;
61 
62  public:
64  Builder_Integrator(const ActionList& action_list,
65  std::vector<Director *> director = std::vector<Director *>());
66 
69  {
70  tidyup();
71  }
72 
73  private:
74  // non-copyable
77 
78  public:
79  void set_parameters(const Parameters& params);
80  void set_parameters(std::string str_integrator_type,
81  const std::vector<int>& Nstep,
82  const int Nprec,
83  const double lambda_Omelyan);
84 
86 
87  Integrator *build();
88 
91 
92  void tidyup();
93 };
94 #endif
~Builder_Integrator()
destructor
BridgeIO vout
Definition: bridgeIO.cpp:495
Integrator * build_leapfrog()
std::vector< int > m_Nstep
Number of steps at each level.
Bridge::VerboseLevel m_vl
std::vector< Director * > m_director
Class for parameters.
Definition: parameters.h:46
int m_Nprec
precision parameter of exponentiation
Base class of Integrator class family.
Definition: integrator.h:29
void set_parameters(const Parameters &params)
Builder_Integrator(const ActionList &action_list, std::vector< Director * > director=std::vector< Director * >())
constructor with ActionList
std::string m_str_integrator_type
Builder_Integrator & operator=(const Builder_Integrator &)
static const std::string class_name
std::vector< Integrator * > m_integs
Integrator to be constructed.
Integrator * build_omelyan()
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
lists of actions at respective integrator levels.
Definition: action_list.h:40
Bridge::VerboseLevel vl
Definition: checker.cpp:18
VerboseLevel
Definition: bridgeIO.h:42
Builder of MD integrator for HMC.