Bridge++  Ver. 2.0.2
integrator_UpdateU.h
Go to the documentation of this file.
1 
14 #ifndef INTEGRATOR_UPDATEU_INCLUDED
15 #define INTEGRATOR_UPDATEU_INCLUDED
16 
17 #include "integrator.h"
18 
19 #include "IO/bridgeIO.h"
20 using Bridge::vout;
21 
23 
35 {
36  public:
37  static const std::string class_name;
38 
39  static const int default_Nprec = 8;
40 
41  private:
42  int m_Nprec; // precision of exponential series
43 
44  std::vector<Director *> m_director; // directors
45  std::vector<Integrator *> m_integs; // list of update_p to send notification
46 
47  public:
48  Integrator_UpdateU(const std::vector<Director *>& director = std::vector<Director *>())
49  : m_Nprec(default_Nprec), m_director(director), m_integs()
50  {}
51 
54 
55  void set_parameters(const Parameters& params);
56  void set_parameters(const int Nprec);
57 
58  void set_parameter_Nprec(const int Nprec);
59 
60  void get_parameters(Parameters& params) const;
61 
62  void evolve(const double step_size, Field_G& iP, Field_G& U);
63 
64 
65  // cache management
67  {
68  // lowest level. do nothing.
69  }
70 
71  void append_notify(Integrator *const integ)
72  {
73  m_integs.push_back(integ);
74  }
75 
76  void notify_update();
77 };
78 #endif
Integrator_UpdateU::default_Nprec
static const int default_Nprec
Definition: integrator_UpdateU.h:39
bridgeIO.h
Parameters
Class for parameters.
Definition: parameters.h:46
Integrator_UpdateU::get_parameters
void get_parameters(Parameters &params) const
Definition: integrator_UpdateU.cpp:42
Integrator_UpdateU::set_parameter_Nprec
void set_parameter_Nprec(const int Nprec)
Definition: integrator_UpdateU.cpp:72
Integrator_UpdateU::Integrator_UpdateU
Integrator_UpdateU(const std::vector< Director * > &director=std::vector< Director * >())
Definition: integrator_UpdateU.h:48
Integrator_UpdateU::m_Nprec
int m_Nprec
Definition: integrator_UpdateU.h:42
Integrator_UpdateU::m_director
std::vector< Director * > m_director
Definition: integrator_UpdateU.h:44
Integrator_UpdateU::append_notify
void append_notify(Integrator *const integ)
Definition: integrator_UpdateU.h:71
Integrator_UpdateU
Integrator of link variable for a given conjugate momenta.
Definition: integrator_UpdateU.h:34
Integrator_UpdateU::evolve
void evolve(const double step_size, Field_G &iP, Field_G &U)
Definition: integrator_UpdateU.cpp:79
Integrator_UpdateU::class_name
static const std::string class_name
Definition: integrator_UpdateU.h:37
Integrator_UpdateU::notify_update
void notify_update()
Definition: integrator_UpdateU.cpp:91
integrator.h
Integrator_UpdateU::m_integs
std::vector< Integrator * > m_integs
Definition: integrator_UpdateU.h:45
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Integrator_UpdateU::invalidate_cache
void invalidate_cache()
Definition: integrator_UpdateU.h:66
Integrator_UpdateU::~Integrator_UpdateU
~Integrator_UpdateU()
destructor
Definition: integrator_UpdateU.h:53
Integrator
Base class of Integrator class family.
Definition: integrator.h:29
Integrator_UpdateU::set_parameters
void set_parameters(const Parameters &params)
Definition: integrator_UpdateU.cpp:19
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512