Bridge++  Ver. 1.3.x
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.h"
18 #include "fprop.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
24 
37 class Action_F_Ratio_lex : public Action
38 {
39  public:
40  static const std::string class_name;
41 
42  private:
44 
45  Fopr *m_fopr_prec; // preconditioner
46  Force *m_fopr_prec_force; // force of preconditioner
47  Fopr *m_fopr; // dynamical fermion
48  Force *m_fopr_force; // force of dynamical fermion
49  Field m_psf; // pseudofermion field
50  std::string m_label; // label of action
51 
55 
57 
58 
59  public:
61  Fopr *fopr_prec, Force *fopr_prec_force,
62  Fopr *fopr, Force *fopr_force,
63  Fprop *fprop_H_prec,
64  Fprop *fprop_MD, Fprop *fprop_H)
65  : Action(),
66  m_fopr_prec(fopr_prec), m_fopr_prec_force(fopr_prec_force),
67  m_fopr(fopr), m_fopr_force(fopr_force),
68  m_fprop_H_prec(fprop_H_prec),
69  m_fprop_MD(fprop_MD), m_fprop_H(fprop_H)
70  {
72  }
73 
75  unique_ptr<Fopr>& fopr_prec, unique_ptr<Force>& fopr_prec_force,
76  unique_ptr<Fopr>& fopr, unique_ptr<Force>& fopr_force,
77  unique_ptr<Fprop>& fprop_H_prec,
78  unique_ptr<Fprop>& fprop_MD, unique_ptr<Fprop>& fprop_H)
79  : Action(),
80  m_fopr_prec(fopr_prec.get()), m_fopr_prec_force(fopr_prec_force.get()),
81  m_fopr(fopr.get()), m_fopr_force(fopr_force.get()),
82  m_fprop_H_prec(fprop_H_prec.get()),
83  m_fprop_MD(fprop_MD.get()), m_fprop_H(fprop_H.get())
84  {
86  }
87 
89 
90  void set_parameters(const Parameters&);
91  void set_parameters();
92 
93  void set_label(std::string label)
94  {
95  m_label = label;
96  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
97  }
98 
99  std::string get_label()
100  {
101  return m_label;
102  }
103 
104  void set_config(Field *U);
105 
106  double langevin(RandomNumbers *);
107  double calcH();
108 
109  void force(Field&);
110 };
111 #endif
BridgeIO vout
Definition: bridgeIO.cpp:278
void set_label(std::string label)
void detailed(const char *format,...)
Definition: bridgeIO.cpp:82
std::string get_label()
void set_config(Field *U)
setting pointer to the gauge configuration.
RandomNumbers * m_rand
Definition: fprop.h:20
Container of Field-type object.
Definition: field.h:39
Base class of fermion force calculation.
Definition: force.h:31
Class for parameters.
Definition: parameters.h:38
Base class of HMC action class family.
Definition: action.h:42
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:81
Base class of random number generators.
Definition: randomNumbers.h:39
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:49