Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_F_Rational_Frame.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_RATIONAL_FRAME_INCLUDED
15 #define ACTION_F_RATIONAL_FRAME_INCLUDED
16 
17 #include "action.h"
18 #include "fopr_Rational.h"
19 #include "force_F_Rational.h"
20 
21 #include "bridgeIO.h"
22 using Bridge::vout;
23 
25 
34 //- parameters class
36 {
37  public:
39 };
40 //- end
41 
43 {
44  public:
45  static const std::string class_name;
46 
47  private:
48  std::string m_label; // label of action
49 
53 
56 
59 
60 
61  public:
64  Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD)
65  : Action(),
66  m_fopr_langev(fopr_langev), m_fopr_H(fopr_H), m_fopr_force_MD(fopr_force_MD)
67  {
68  setup();
69  }
70 
73 
74  void set_parameters(const Parameters& params);
75 
77  void set_label(std::string label)
78  {
79  m_label = label;
80  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
81  }
82 
84  std::string get_label()
85  {
86  return m_label;
87  }
88 
90  void set_config(Field *U)
91  {
92  m_U = U;
94  m_fopr_H->set_config(U);
96  }
97 
99  void notify_linkv()
100  {
101  m_status_linkv = 0;
102  }
103 
105  double langevin(RandomNumbers *);
106 
108  double calcH();
109 
111  const Field force();
112 
113  private:
114 
116  void setup();
117 
119  void tidyup();
120 };
121 #endif
BridgeIO vout
Definition: bridgeIO.cpp:207
void set_parameters(const Parameters &params)
void detailed(const char *format,...)
Definition: bridgeIO.cpp:50
double langevin(RandomNumbers *)
Langevin step called at the beginning of HMC.
virtual void set_config(Field *)=0
setting pointer to the gauge configuration.
Container of Field-type object.
Definition: field.h:37
virtual void set_config(Field *)=0
void set_config(Field *U)
setting gauge configuration.
std::string get_label()
returns the label of action.
Base class of fermion force calculation.
Definition: force.h:34
Class for parameters.
Definition: parameters.h:40
Base class of HMC action class family.
Definition: action.h:35
const Field force()
returns the force for updating conjugate momentum.
~Action_F_Rational_frame()
destructor. constructed instances are deconstructed in tydyup().
void set_label(std::string label)
set the label of action.
double calcH()
calculation of Hamiltonian.
static const std::string class_name
action class for RHMC, with externally constructed Fopr_Rational.
Bridge::VerboseLevel m_vl
Definition: action.h:64
Base class of random number generators.
Definition: randomNumbers.h:40
Action_F_Rational_frame(Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD)
constructor requires pointers to Fopr and Force instances.
Base class of fermion operator family.
Definition: fopr.h:39
void setup()
creating instances. called from set_parameters().
void notify_linkv()
to be called when link variable is updated.
void tidyup()
destruct class instances constructed in setup()