Bridge++  Ver. 1.3.x
action_F_Standard_eo.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_STANDARD_EO_INCLUDED
15 #define ACTION_F_STANDARD_EO_INCLUDED
16 
17 #include "action.h"
18 #include "fprop.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
24 
36 {
37  public:
38  static const std::string class_name;
39 
40  private:
44  std::string m_label;
45 
48 
50 
51 
52  public:
54  Fopr *fopr, Force *fopr_force,
55  Fprop *fprop_MD, Fprop *fprop_H)
56  : Action(),
57  m_fopr(fopr), m_fopr_force(fopr_force),
58  m_fprop_MD(fprop_MD), m_fprop_H(fprop_H)
59  {
61  }
62 
64  unique_ptr<Fopr>& fopr, unique_ptr<Force>& fopr_force,
65  unique_ptr<Fprop>& fprop_MD, unique_ptr<Fprop>& fprop_H)
66  : Action(),
67  m_fopr(fopr.get()), m_fopr_force(fopr_force.get()),
68  m_fprop_MD(fprop_MD.get()), m_fprop_H(fprop_H.get())
69  {
71  }
72 
74 
75  void set_parameters(const Parameters&);
76  void set_parameters();
77 
78  void set_label(std::string label)
79  {
80  m_label = label;
81  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
82  }
83 
84  std::string get_label()
85  {
86  return m_label;
87  }
88 
89  void set_config(Field *U);
90 
91  double langevin(RandomNumbers *);
92 
93  double calcH();
94 
95  void force(Field&);
96 };
97 #endif
BridgeIO vout
Definition: bridgeIO.cpp:278
void detailed(const char *format,...)
Definition: bridgeIO.cpp:82
Standard even-odd preconditioned fermion action for HMC.
static const std::string class_name
double langevin(RandomNumbers *)
Langevis step.
Action_F_Standard_eo(unique_ptr< Fopr > &fopr, unique_ptr< Force > &fopr_force, unique_ptr< Fprop > &fprop_MD, unique_ptr< Fprop > &fprop_H)
Definition: fprop.h:20
Container of Field-type object.
Definition: field.h:39
void set_label(std::string label)
Base class of fermion force calculation.
Definition: force.h:31
Class for parameters.
Definition: parameters.h:38
double calcH()
calculate Hamiltonian of this action term.
Base class of HMC action class family.
Definition: action.h:42
Action_F_Standard_eo(Fopr *fopr, Force *fopr_force, Fprop *fprop_MD, Fprop *fprop_H)
void set_config(Field *U)
setting pointer to the gauge configuration.
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.
Bridge::VerboseLevel m_vl
Definition: action.h:81
Base class of random number generators.
Definition: randomNumbers.h:39
Base class of fermion operator family.
Definition: fopr.h:49