Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
integrator_UpdateP.h
Go to the documentation of this file.
1 
14 #ifndef INTEGRATOR_UPDATEP_INCLUDED
15 #define INTEGRATOR_UPDATEP_INCLUDED
16 
17 #include "integrator.h"
18 
19 #include "IO/bridgeIO.h"
20 using Bridge::vout;
21 
23 
39 {
40  public:
41  static const std::string class_name;
42 
43  private:
44  std::vector<Action *> m_action; // actions
45 
46  // work area
48 
49  // cache
51 
53 
54 
55  public:
57  Integrator_UpdateP(const std::vector<Action *>& action)
58  : m_action(action), m_cache_valid(false)
59  {
62  }
63 
66 
67  void set_parameters(const Parameters& params);
68  void set_parameters();
69 
70  void evolve(const double step_size, Field_G& iP, Field_G& U);
71 
72  public:
73 
74  void invalidate_cache() { m_cache_valid = false; }
75 
76  bool is_cache_valid() const { return m_cache_valid; }
77  void cache_validated() { m_cache_valid = true; }
78 };
79 #endif
BridgeIO vout
Definition: bridgeIO.cpp:495
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:46
Base class of Integrator class family.
Definition: integrator.h:29
Integrator of conjugate momenta for given link variables.
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