Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_F_Standard_lex.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_STANDARD_LEX_INCLUDED
15 #define ACTION_F_STANDARD_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 
38 {
39  public:
40  static const std::string class_name;
41 
42  private:
46  std::string m_label;
47 
50 
52 
53 
54  public:
56  Fopr *fopr, Force *fopr_force,
57  Fprop *fprop_MD, Fprop *fprop_H)
58  : Action(),
59  m_fopr(fopr), m_fopr_force(fopr_force),
60  m_fprop_MD(fprop_MD), m_fprop_H(fprop_H)
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  {}
70 
72  {
73  // delete m_fprop;
74  }
75 
76  void set_parameters(const Parameters&);
77 
78  void set_label(const 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:503
void set_config(Field *U)
setting pointer to the gauge configuration.
void detailed(const char *format,...)
Definition: bridgeIO.cpp:216
Action_F_Standard_lex(unique_ptr< Fopr > &fopr, unique_ptr< Force > &fopr_force, unique_ptr< Fprop > &fprop_MD, unique_ptr< Fprop > &fprop_H)
Base class for fermion propagator class family.
Definition: fprop.h:30
Container of Field-type object.
Definition: field.h:45
double calcH()
calculate Hamiltonian of this action term.
double langevin(RandomNumbers *)
Langevis step.
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
void set_label(const std::string label)
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.
void set_parameters(const Parameters &)
Base class of fermion operator family.
Definition: fopr.h:46
Standard fermion action for HMC.
Action_F_Standard_lex(Fopr *fopr, Force *fopr_force, Fprop *fprop_MD, Fprop *fprop_H)
static const std::string class_name