Bridge++  Ver. 2.0.2
fprop_Wilson_Shift.h
Go to the documentation of this file.
1 
14 #ifndef FPROP_WILSON_SHIFT_INCLUDED
15 #define FPROP_WILSON_SHIFT_INCLUDED
16 
17 #include "Fopr/fopr_Wilson.h"
18 #include "Field/index_lex.h"
19 #include "Solver/shiftsolver_CG.h"
20 
21 #include "IO/bridgeIO.h"
22 using Bridge::vout;
23 
25 
38 {
39  public:
40  static const std::string class_name;
41 
42  protected:
44 
45  private:
48 
49  int m_Niter;
50  double m_Stop_cond;
51 
52  int m_Nshift;
53  std::vector<double> m_sigma;
54 
55  public:
57  : m_vl(CommonParameters::Vlevel()),
58  m_fopr(fopr), m_index_lex(index) {}
59 
61  : m_vl(CommonParameters::Vlevel()),
62  m_fopr(fopr), m_index_lex(nullptr)
63  {
64  set_parameters(params);
65  }
66 
67  private:
68  // non-copyable
71 
72  public:
73  void set_parameters(const Parameters& params);
74  void set_parameters(const int Nshift, const std::vector<double> sigma,
75  const int Niter, const double Stop_cond);
76 
77  void get_parameters(Parameters& params) const;
78 
79  double invert_D(std::vector<Field_F> *, const Field_F&);
80 };
81 #endif
Fprop_Wilson_Shift::invert_D
double invert_D(std::vector< Field_F > *, const Field_F &)
Definition: fprop_Wilson_Shift.cpp:95
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Index_lex
Lexical site index.
Definition: index_lex.h:34
Fprop_Wilson_Shift::Fprop_Wilson_Shift
Fprop_Wilson_Shift(Fopr_Wilson *fopr, Index_lex *index)
Definition: fprop_Wilson_Shift.h:56
Fprop_Wilson_Shift::Fprop_Wilson_Shift
Fprop_Wilson_Shift(Fopr_Wilson *fopr, const Parameters &params)
Definition: fprop_Wilson_Shift.h:60
Parameters
Class for parameters.
Definition: parameters.h:46
Fprop_Wilson_Shift::m_index_lex
Index_lex * m_index_lex
Definition: fprop_Wilson_Shift.h:47
Fprop_Wilson_Shift::m_Stop_cond
double m_Stop_cond
Definition: fprop_Wilson_Shift.h:50
Fprop_Wilson_Shift::m_Niter
int m_Niter
Definition: fprop_Wilson_Shift.h:49
shiftsolver_CG.h
Fprop_Wilson_Shift::m_Nshift
int m_Nshift
Definition: fprop_Wilson_Shift.h:52
Fprop_Wilson_Shift::operator=
Fprop_Wilson_Shift & operator=(const Fprop_Wilson_Shift &)
Fprop_Wilson_Shift::m_fopr
Fopr_Wilson * m_fopr
Definition: fprop_Wilson_Shift.h:46
fopr_Wilson.h
Fprop_Wilson_Shift
Get shifted quark propagators.
Definition: fprop_Wilson_Shift.h:37
index_lex.h
Fprop_Wilson_Shift::m_sigma
std::vector< double > m_sigma
Definition: fprop_Wilson_Shift.h:53
Field_F
Wilson-type fermion field.
Definition: field_F.h:37
Fprop_Wilson_Shift::m_vl
Bridge::VerboseLevel m_vl
Definition: fprop_Wilson_Shift.h:43
Fprop_Wilson_Shift::set_parameters
void set_parameters(const Parameters &params)
Definition: fprop_Wilson_Shift.cpp:19
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Org::Fopr_Wilson
Definition: fopr_Wilson_impl.h:38
Fprop_Wilson_Shift::get_parameters
void get_parameters(Parameters &params) const
Definition: fprop_Wilson_Shift.cpp:49
Fprop_Wilson_Shift::class_name
static const std::string class_name
Definition: fprop_Wilson_Shift.h:40
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512