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