Bridge++  Ver. 2.0.2
action_F_Rational_alt.h
Go to the documentation of this file.
1 
10 #ifndef ACTION_F_RATIONAL_ALT_INCLUDED
11 #define ACTION_F_RATIONAL_ALT_INCLUDED
12 
13 #include "lib/Action/action.h"
14 
16 #include "lib/Force/Fermion/aforce_F_Rational.h"
17 
18 #include "lib/IO/bridgeIO.h"
19 using Bridge::vout;
20 
21 // include files in alt-code
22 #include "Field/afield.h"
23 #include "Measurements/Fermion/afprop.h"
24 
26 
33 template<typename AFIELD>
35 {
36  public:
37  //typedef AField<double> AFIELD;
38  typedef typename AFIELD::real_t real_t;
39  static const std::string class_name;
40 
41  private:
42  std::string m_label; // label of action
43 
46  AForce_F<AFIELD> *m_fopr_force_MD;
47 
49 
51 
52  public:
55  AFopr<AFIELD> *fopr_H,
56  AForce_F<AFIELD> *fopr_force_MD)
57  : Action(),
58  m_fopr_langev(fopr_langev), m_fopr_H(fopr_H),
59  m_fopr_force_MD(fopr_force_MD)
60  { init(); }
61 
64 
65  void set_parameters(const Parameters& params);
66 
68  void set_label(const std::string label)
69  {
70  m_label = label;
71  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
72  }
73 
75  std::string get_label()
76  { return m_label; }
77 
79  void set_config(Field *U);
80 
82  double langevin(RandomNumbers *);
83 
85  double calcH();
86 
88  //const Field force();
89  void force(Field&);
90 
91  private:
92  void init();
93  void tidyup();
94 };
95 #endif
bridgeIO.h
afield.h
Action_F_Rational_alt::m_fopr_H
AFopr< AFIELD > * m_fopr_H
Definition: action_F_Rational_alt.h:45
Action_F_Rational_alt::class_name
static const std::string class_name
Definition: action_F_Rational_alt.h:39
AFopr
Definition: afopr.h:48
Action_F_Rational_alt::get_label
std::string get_label()
returns the label of action.
Definition: action_F_Rational_alt.h:75
Parameters
Class for parameters.
Definition: parameters.h:46
Action_F_Rational_alt::init
void init()
Definition: action_F_Rational_alt-tmpl.h:20
Bridge::BridgeIO::detailed
void detailed(const char *format,...)
Definition: bridgeIO.cpp:219
RandomNumbers
Base class of random number generators.
Definition: randomNumbers.h:43
Action
Base class of HMC action class family.
Definition: action.h:36
action.h
Action_F_Rational_alt::m_fopr_force_MD
AForce_F< AFIELD > * m_fopr_force_MD
Definition: action_F_Rational_alt.h:46
Action_F_Rational_alt::m_psf
AFIELD m_psf
Definition: action_F_Rational_alt.h:50
Field::real_t
double real_t
Definition: field.h:51
Action_F_Rational_alt::~Action_F_Rational_alt
~Action_F_Rational_alt()
destructor.
Definition: action_F_Rational_alt.h:63
Action_F_Rational_alt::m_U
Field * m_U
Definition: action_F_Rational_alt.h:48
Action_F_Rational_alt::set_config
void set_config(Field *U)
setting gauge configuration.
Definition: action_F_Rational_alt-tmpl.h:45
afopr_Rational.h
Action_F_Rational_alt::set_label
void set_label(const std::string label)
set the label of action.
Definition: action_F_Rational_alt.h:68
Action_F_Rational_alt
action class for RHMC, with externally constructed AFopr_Rational.
Definition: action_F_Rational_alt.h:34
Action_F_Rational_alt::calcH
double calcH()
calculation of Hamiltonian.
Definition: action_F_Rational_alt-tmpl.h:98
Action_F_Rational_alt::tidyup
void tidyup()
Definition: action_F_Rational_alt-tmpl.h:28
Action_F_Rational_alt::Action_F_Rational_alt
Action_F_Rational_alt(AFopr< AFIELD > *fopr_langev, AFopr< AFIELD > *fopr_H, AForce_F< AFIELD > *fopr_force_MD)
constructor.
Definition: action_F_Rational_alt.h:54
Action_F_Rational_alt::set_parameters
void set_parameters(const Parameters &params)
Definition: action_F_Rational_alt-tmpl.h:36
Action_F_Rational_alt::m_label
std::string m_label
Definition: action_F_Rational_alt.h:42
Action_F_Rational_alt::langevin
double langevin(RandomNumbers *)
Langevin step called at the beginning of HMC.
Definition: action_F_Rational_alt-tmpl.h:56
Action_F_Rational_alt::m_fopr_langev
AFopr< AFIELD > * m_fopr_langev
Definition: action_F_Rational_alt.h:44
Action_F_Rational_alt::force
void force(Field &)
returns the force for updating conjugate momentum.
Definition: action_F_Rational_alt-tmpl.h:122
Action_F_Rational_alt::real_t
AFIELD::real_t real_t
Definition: action_F_Rational_alt.h:38
Field
Container of Field-type object.
Definition: field.h:46
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512