Bridge++  Version 1.5.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 
38 {
39  public:
40  static const std::string class_name;
41 
42  private:
43  std::vector<Action *> m_action; // actions
44 
45  // work area
47 
48  // cache
50 
52 
53 
54  public:
56  Integrator_UpdateP(const std::vector<Action *>& action)
57  : m_action(action), m_cache_valid(false)
58  {
61  }
62 
65 
66  void set_parameters(const Parameters& params);
67  void set_parameters();
68 
69  void evolve(const double step_size, Field_G& iP, Field_G& U);
70 
71  public:
72  void invalidate_cache() { m_cache_valid = false; }
73 
74  bool is_cache_valid() const { return m_cache_valid; }
75  void cache_validated() { m_cache_valid = true; }
76 };
77 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
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:79
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