Bridge++  Ver. 2.0.2
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 get_parameters(Parameters& params) const;
70 
71  void evolve(const double step_size, Field_G& iP, Field_G& U);
72 
73  public:
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
Integrator_UpdateP::invalidate_cache
void invalidate_cache()
Definition: integrator_UpdateP.h:74
Integrator_UpdateP::Integrator_UpdateP
Integrator_UpdateP(const std::vector< Action * > &action)
constructor when no director is necessary
Definition: integrator_UpdateP.h:56
bridgeIO.h
Integrator_UpdateP::m_action
std::vector< Action * > m_action
Definition: integrator_UpdateP.h:43
Integrator_UpdateP::m_force
Field_G m_force
Definition: integrator_UpdateP.h:49
CommonParameters::Ndim
static int Ndim()
Definition: commonParameters.h:117
Parameters
Class for parameters.
Definition: parameters.h:46
Integrator_UpdateP::is_cache_valid
bool is_cache_valid() const
Definition: integrator_UpdateP.h:76
CommonParameters::Nvol
static int Nvol()
Definition: commonParameters.h:109
Integrator_UpdateP::m_workfield
Field_G m_workfield
Definition: integrator_UpdateP.h:46
Integrator_UpdateP::class_name
static const std::string class_name
Definition: integrator_UpdateP.h:40
Integrator_UpdateP
Integrator of conjugate momenta for given link variables.
Definition: integrator_UpdateP.h:37
Integrator_UpdateP::get_parameters
void get_parameters(Parameters &params) const
Definition: integrator_UpdateP.cpp:37
Integrator_UpdateP::~Integrator_UpdateP
~Integrator_UpdateP()
destructor
Definition: integrator_UpdateP.h:64
Field_G::reset
void reset(const int Nvol, const int Nex)
Definition: field_G.h:79
Integrator_UpdateP::cache_validated
void cache_validated()
Definition: integrator_UpdateP.h:77
Integrator_UpdateP::set_parameters
void set_parameters()
integrator.h
Integrator_UpdateP::m_cache_valid
bool m_cache_valid
Definition: integrator_UpdateP.h:51
Integrator_UpdateP::evolve
void evolve(const double step_size, Field_G &iP, Field_G &U)
Definition: integrator_UpdateP.cpp:44
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Integrator
Base class of Integrator class family.
Definition: integrator.h:29
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512