Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_Wilson *)fopr.get()), m_index_lex(index.get()) {}
63 
64  private:
65  // non-copyable
68 
69  public:
70  void set_parameters(const Parameters& params);
71  void set_parameters(const int Nshift, const std::vector<double> sigma,
72  const int Niter, const double Stop_cond);
73 
74  double invert_D(std::vector<Field_F> *, const Field_F&);
75 };
76 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
Fprop_Wilson_Shift(Fopr_Wilson *fopr, Index_lex *index)
Fprop_Wilson_Shift(unique_ptr< Fopr > &fopr, unique_ptr< Index_lex > &index)
static const std::string class_name
Fprop_Wilson_Shift & operator=(const Fprop_Wilson_Shift &)
Class for parameters.
Definition: parameters.h:46
Wilson-type fermion field.
Definition: field_F.h:37
std::vector< double > m_sigma
Common parameter class: provides parameters as singleton.
Lexical site index.
Definition: index_lex.h:34
VerboseLevel
Definition: bridgeIO.h:42
Bridge::VerboseLevel m_vl
void set_parameters(const Parameters &params)
double invert_D(std::vector< Field_F > *, const Field_F &)
Get shifted quark propagators.