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