Bridge++  Ver. 2.0.2
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/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:
44 
48  std::string m_label;
49 
52 
54 
55 
56  public:
58  Fopr *fopr, Force *fopr_force,
59  Fprop *fprop_MD, Fprop *fprop_H)
60  : m_vl(CommonParameters::Vlevel()),
61  m_fopr(fopr), m_fopr_force(fopr_force),
62  m_fprop_MD(fprop_MD), m_fprop_H(fprop_H)
63  {}
64 
66  Fopr *fopr, Force *fopr_force,
67  Fprop *fprop_MD, Fprop *fprop_H,
68  const Parameters& params)
69  : m_vl(CommonParameters::Vlevel()),
70  m_fopr(fopr), m_fopr_force(fopr_force),
71  m_fprop_MD(fprop_MD), m_fprop_H(fprop_H)
72  {
73  set_parameters(params);
74  }
75 
77 
78  void set_parameters(const Parameters&);
79 
80  void get_parameters(Parameters&) const;
81 
82  void set_label(const std::string label)
83  {
84  m_label = label;
85  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
86  }
87 
88  std::string get_label()
89  {
90  return m_label;
91  }
92 
93  void set_config(Field *U);
94 
95  double langevin(RandomNumbers *);
96 
97  double calcH();
98 
99  void force(Field&);
100 };
101 #endif
Action_F_Standard_eo::m_vl
Bridge::VerboseLevel m_vl
Definition: action_F_Standard_eo.h:43
Action_F_Standard_eo::class_name
static const std::string class_name
Definition: action_F_Standard_eo.h:40
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
AFopr< Field >
Parameters
Class for parameters.
Definition: parameters.h:46
Bridge::BridgeIO::detailed
void detailed(const char *format,...)
Definition: bridgeIO.cpp:219
RandomNumbers
Base class of random number generators.
Definition: randomNumbers.h:43
Action
Base class of HMC action class family.
Definition: action.h:36
Action_F_Standard_eo::calcH
double calcH()
calculate Hamiltonian of this action term.
Definition: action_F_Standard_eo.cpp:81
Action_F_Standard_eo::m_label
std::string m_label
Definition: action_F_Standard_eo.h:48
action.h
Action_F_Standard_eo::Action_F_Standard_eo
Action_F_Standard_eo(Fopr *fopr, Force *fopr_force, Fprop *fprop_MD, Fprop *fprop_H)
Definition: action_F_Standard_eo.h:57
Action_F_Standard_eo::set_parameters
void set_parameters(const Parameters &)
Definition: action_F_Standard_eo.cpp:19
Action_F_Standard_eo::set_label
void set_label(const std::string label)
Definition: action_F_Standard_eo.h:82
Action_F_Standard_eo::set_config
void set_config(Field *U)
setting pointer to the gauge configuration.
Definition: action_F_Standard_eo.cpp:36
Action_F_Standard_eo::m_psf
Field m_psf
Definition: action_F_Standard_eo.h:47
Action_F_Standard_eo::Action_F_Standard_eo
Action_F_Standard_eo(Fopr *fopr, Force *fopr_force, Fprop *fprop_MD, Fprop *fprop_H, const Parameters &params)
Definition: action_F_Standard_eo.h:65
Action_F_Standard_eo::~Action_F_Standard_eo
~Action_F_Standard_eo()
Definition: action_F_Standard_eo.h:76
Action_F_Standard_eo::force
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.
Definition: action_F_Standard_eo.cpp:109
Action_F_Standard_eo::m_fopr
Fopr * m_fopr
Definition: action_F_Standard_eo.h:45
Action_F_Standard_eo::get_parameters
void get_parameters(Parameters &) const
Definition: action_F_Standard_eo.cpp:29
Action_F_Standard_eo::m_fprop_H
Fprop * m_fprop_H
Definition: action_F_Standard_eo.h:51
Action_F_Standard_eo::m_fprop_MD
Fprop * m_fprop_MD
Definition: action_F_Standard_eo.h:50
Fprop
Base class for fermion propagator class family.
Definition: fprop.h:34
Action_F_Standard_eo::m_U
Field * m_U
Definition: action_F_Standard_eo.h:53
force_F.h
Action_F_Standard_eo
Standard even-odd preconditioned fermion action for HMC.
Definition: action_F_Standard_eo.h:37
Action_F_Standard_eo::m_fopr_force
Force * m_fopr_force
Definition: action_F_Standard_eo.h:46
Field
Container of Field-type object.
Definition: field.h:46
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
fprop.h
Action_F_Standard_eo::langevin
double langevin(RandomNumbers *)
Langevis step.
Definition: action_F_Standard_eo.cpp:47
Force
Base class of fermion force calculation.
Definition: force_F.h:31
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Action_F_Standard_eo::get_label
std::string get_label()
Definition: action_F_Standard_eo.h:88