Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gradientFlow_AdaptiveRungeKutta.h
Go to the documentation of this file.
1 
13 #ifndef GRADIENTFLOW_ADAPTIVERUNGEKUTTA_INCLUDED
14 #define GRADIENTFLOW_ADAPTIVERUNGEKUTTA_INCLUDED
15 
17 
18 #include "IO/bridgeIO.h"
19 using Bridge::vout;
20 
22 
35 {
36  public:
37  static const std::string class_name;
38 
39  protected:
41 
42  private:
44 
45  int m_Ndim;
46  int m_Nvol;
47 
49 
50  double m_tolerance;
51  double m_safety;
52 
54 
55  public:
57  const double tolerance, const double safety, const Bridge::VerboseLevel vl)
58  : GradientFlow_RungeKutta(0, 0, vl),
59  m_vl(vl),
60  m_RK(RK),
61  m_tolerance(tolerance),
62  m_safety(safety)
63  {
66 
69  }
70 
72 
73  void flow(double& t, double& Estep, Field_G& U);
74 
75  int Norder_RK() const { return m_RK ? m_RK->Norder_RK() : 0; }
76 
77  private:
78  double max_diff_U(const Field_G& U1, const Field_G& U0) const;
79 };
80 #endif
virtual int Norder_RK() const =0
BridgeIO vout
Definition: bridgeIO.cpp:503
void flow(double &t, double &Estep, Field_G &U)
void reset(const int Nvol, const int Nex)
Definition: field_G.h:79
GradientFlow_AdaptiveRungeKutta construction.
Base class of HMC action class family.
Definition: action.h:36
double max_diff_U(const Field_G &U1, const Field_G &U0) const
SU(N) gauge field.
Definition: field_G.h:38
GradientFlow_AdaptiveRungeKutta(GradientFlow_RungeKutta *RK, const double tolerance, const double safety, const Bridge::VerboseLevel vl)
Bridge::VerboseLevel vl
VerboseLevel
Definition: bridgeIO.h:42
GradientFlow_RungeKutta construction.