Bridge++  Ver. 2.0.2
action_F_Rational_SF.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_FRATIONAL_SF_INCLUDED
15 #define ACTION_FRATIONAL_SF_INCLUDED
16 
17 #include "Action/action.h"
18 
19 #include "Fopr/fopr_Rational.h"
21 
22 #include "Field/field_SF.h"
23 
24 #include "IO/bridgeIO.h"
25 using Bridge::vout;
26 
28 
39 class Action_F_Rational_SF : public Action {
40  public:
41  static const std::string class_name;
42 
43  private:
45 
46  std::string m_label; // label of action
47 
51 
53 
55 
56  public:
58  Action_F_Rational_SF(Fopr *fopr_langev, Fopr *fopr_H,
59  Force *fopr_force_MD)
60  : m_vl(CommonParameters::Vlevel())
61  {
62  m_fopr_langev = fopr_langev;
63  m_fopr_H = fopr_H;
64  m_fopr_force_MD = fopr_force_MD;
65  }
66 
67  Action_F_Rational_SF(Fopr *fopr_langev, Fopr *fopr_H,
68  Force *fopr_force_MD,
69  const Parameters& params)
70  : m_vl(CommonParameters::Vlevel())
71  {
72  m_fopr_langev = fopr_langev;
73  m_fopr_H = fopr_H;
74  m_fopr_force_MD = fopr_force_MD;
75 
76  set_parameters(params);
77  }
78 
81  {}
82 
84  void set_parameters(const Parameters& params);
85 
87  void get_parameters(Parameters& params) const;
88 
90  void set_label(const std::string label)
91  {
92  m_label = label;
93  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
94  }
95 
97  std::string get_label()
98  {
99  return m_label;
100  }
101 
103  void set_config(Field *U)
104  {
105  m_U = U;
107  m_fopr_H->set_config(U);
109  }
110 
112  double langevin(RandomNumbers *);
113 
115  double calcH();
116 
118  //const Field force();
119  void force(Field&);
120 
121  private:
122 };
123 #endif
bridgeIO.h
Action_F_Rational_SF::m_vl
Bridge::VerboseLevel m_vl
Definition: action_F_Rational_SF.h:44
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
AFopr< Field >
force_F_Rational.h
Parameters
Class for parameters.
Definition: parameters.h:46
Action_F_Rational_SF::m_psf
Field m_psf
Definition: action_F_Rational_SF.h:54
Bridge::BridgeIO::detailed
void detailed(const char *format,...)
Definition: bridgeIO.cpp:219
Action_F_Rational_SF::set_parameters
void set_parameters(const Parameters &params)
setting parameters and creating class instances.
Definition: action_F_Rational_SF.cpp:19
RandomNumbers
Base class of random number generators.
Definition: randomNumbers.h:43
Action_F_Rational_SF::m_label
std::string m_label
Definition: action_F_Rational_SF.h:46
Force::set_config
virtual void set_config(Field *)=0
Action_F_Rational_SF::langevin
double langevin(RandomNumbers *)
Langevin step called at the beginning of HMC.
Definition: action_F_Rational_SF.cpp:36
Action_F_Rational_SF::set_config
void set_config(Field *U)
setting gauge configuration.
Definition: action_F_Rational_SF.h:103
Action_F_Rational_SF::m_fopr_langev
Fopr * m_fopr_langev
Definition: action_F_Rational_SF.h:48
Action
Base class of HMC action class family.
Definition: action.h:36
action.h
Action_F_Rational_SF::~Action_F_Rational_SF
~Action_F_Rational_SF()
destructor. constructed instances are deconstructed in tydyup().
Definition: action_F_Rational_SF.h:80
Action_F_Rational_SF::class_name
static const std::string class_name
Definition: action_F_Rational_SF.h:41
AFopr::set_config
virtual void set_config(Field *)=0
sets the gauge configuration.
field_SF.h
Action_F_Rational_SF::calcH
double calcH()
calculation of Hamiltonian.
Definition: action_F_Rational_SF.cpp:66
Action_F_Rational_SF::force
void force(Field &)
returns the force for updating conjugate momentum.
Definition: action_F_Rational_SF.cpp:89
Action_F_Rational_SF::set_label
void set_label(const std::string label)
set the label of action.
Definition: action_F_Rational_SF.h:90
Action_F_Rational_SF::get_parameters
void get_parameters(Parameters &params) const
getting parameters
Definition: action_F_Rational_SF.cpp:29
Action_F_Rational_SF::m_fopr_H
Fopr * m_fopr_H
Definition: action_F_Rational_SF.h:49
Action_F_Rational_SF::Action_F_Rational_SF
Action_F_Rational_SF(Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD, const Parameters &params)
Definition: action_F_Rational_SF.h:67
Action_F_Rational_SF::m_fopr_force_MD
Force * m_fopr_force_MD
Definition: action_F_Rational_SF.h:50
Action_F_Rational_SF
action class for RHMC, with externally constructed Fopr_Rational.
Definition: action_F_Rational_SF.h:39
Action_F_Rational_SF::get_label
std::string get_label()
returns the label of action.
Definition: action_F_Rational_SF.h:97
fopr_Rational.h
Field
Container of Field-type object.
Definition: field.h:46
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Action_F_Rational_SF::Action_F_Rational_SF
Action_F_Rational_SF(Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD)
constructor requires pointers to Fopr and Force instances.
Definition: action_F_Rational_SF.h:58
Action_F_Rational_SF::m_U
Field * m_U
Definition: action_F_Rational_SF.h:52
Force
Base class of fermion force calculation.
Definition: force_F.h:31
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512