Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_F_Ratio_eo.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_RATIO_EO_INCLUDED
15 #define ACTION_F_RATIO_EO_INCLUDED
16 
17 #include "Action/action.h"
18 
19 #include "Force/Fermion/force_F.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
41 class Action_F_Ratio_eo : public Action
42 {
43  public:
44  static const std::string class_name;
45 
46  private:
48 
49  Fopr *m_fopr_prec; // preconditioner
50  Force *m_fopr_prec_force; // force of preconditioner
51  Fopr *m_fopr; // dynamical fermion
52  Force *m_fopr_force; // force of dynamical fermion
53  Field m_psf; // pseudofermion field
54  std::string m_label; // label of action
55 
59 
60  public:
62  Fopr *fopr_prec, Force *fopr_prec_force,
63  Fopr *fopr, Force *fopr_force,
64  Fprop *fprop_H_prec,
65  Fprop *fprop_MD, Fprop *fprop_H)
66  : Action(),
67  m_fopr_prec(fopr_prec), m_fopr_prec_force(fopr_prec_force),
68  m_fopr(fopr), m_fopr_force(fopr_force),
69  m_fprop_H_prec(fprop_H_prec),
70  m_fprop_MD(fprop_MD), m_fprop_H(fprop_H)
71  {
73  }
74 
76  unique_ptr<Fopr>& fopr_prec, unique_ptr<Force>& fopr_prec_force,
77  unique_ptr<Fopr>& fopr, unique_ptr<Force>& fopr_force,
78  unique_ptr<Fprop>& fprop_H_prec,
79  unique_ptr<Fprop>& fprop_MD, unique_ptr<Fprop>& fprop_H)
80  : Action(),
81  m_fopr_prec(fopr_prec.get()), m_fopr_prec_force(fopr_prec_force.get()),
82  m_fopr(fopr.get()), m_fopr_force(fopr_force.get()),
83  m_fprop_H_prec(fprop_H_prec.get()),
84  m_fprop_MD(fprop_MD.get()), m_fprop_H(fprop_H.get())
85  {
87  }
88 
90 
91  void set_parameters(const Parameters&);
92  void set_parameters();
93 
94  void set_label(const std::string label)
95  {
96  m_label = label;
97  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
98  }
99 
100  std::string get_label()
101  {
102  return m_label;
103  }
104 
105  void set_config(Field *U);
106 
107  double langevin(RandomNumbers *);
108  double calcH();
109 
110  void force(Field&);
111 };
112 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
void detailed(const char *format,...)
Definition: bridgeIO.cpp:216
static const std::string class_name
double calcH()
calculate Hamiltonian of this action term.
void set_label(const std::string label)
std::string get_label()
HMC action for Hasenbusch preconditioned fermions.
Base class for fermion propagator class family.
Definition: fprop.h:30
Container of Field-type object.
Definition: field.h:45
void set_config(Field *U)
setting pointer to the gauge configuration.
Base class of fermion force calculation.
Definition: force_F.h:31
Class for parameters.
Definition: parameters.h:46
Base class of HMC action class family.
Definition: action.h:36
Action_F_Ratio_eo(unique_ptr< Fopr > &fopr_prec, unique_ptr< Force > &fopr_prec_force, unique_ptr< Fopr > &fopr, unique_ptr< Force > &fopr_force, unique_ptr< Fprop > &fprop_H_prec, unique_ptr< Fprop > &fprop_MD, unique_ptr< Fprop > &fprop_H)
double langevin(RandomNumbers *)
Langevis step.
Bridge::VerboseLevel m_vl
Definition: action.h:75
Base class of random number generators.
Definition: randomNumbers.h:43
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.
Base class of fermion operator family.
Definition: fopr.h:46
Action_F_Ratio_eo(Fopr *fopr_prec, Force *fopr_prec_force, Fopr *fopr, Force *fopr_force, Fprop *fprop_H_prec, Fprop *fprop_MD, Fprop *fprop_H)