Bridge++  Ver. 1.3.x
integrator_UpdateP.h
Go to the documentation of this file.
1 
13 #ifndef INTEGRATOR_UPDATEP_INCLUDED
14 #define INTEGRATOR_UPDATEP_INCLUDED
15 
16 #include "action.h"
17 #include "director.h"
18 #include "integrator.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
24 
38 //- parameters class
40 {
41  public:
43 };
44 //- end
45 
47 {
48  public:
49  static const std::string class_name;
50 
51  private:
52  std::vector<Action *> m_action; // actions
53 
54  // work area
56 
57  // cache
59 
61 
62 
63  public:
65  Integrator_UpdateP(const std::vector<Action *>& action)
66  : m_action(action), m_cache_valid(false)
67  {
70  }
71 
74 
75  void set_parameters(const Parameters& params);
76  void set_parameters();
77 
78  void evolve(const double step_size, Field_G& iP, Field_G& U);
79 
80  public:
81 
82  void invalidate_cache() { m_cache_valid = false; }
83 
84  bool is_cache_valid() const { return m_cache_valid; }
85  void cache_validated() { m_cache_valid = true; }
86 };
87 #endif
Integrator of conjugate momenta for given link variables.
BridgeIO vout
Definition: bridgeIO.cpp:278
Integrator_UpdateP(const std::vector< Action * > &action)
constructor when no director is necessary
void reset(const int Nvol, const int Nex)
Definition: field_G.h:78
static const std::string class_name
Class for parameters.
Definition: parameters.h:38
Base class of Integrator class family.
Definition: integrator.h:31
SU(N) gauge field.
Definition: field_G.h:38
void evolve(const double step_size, Field_G &iP, Field_G &U)
bool is_cache_valid() const
~Integrator_UpdateP()
destructor
std::vector< Action * > m_action