Bridge++  Ver. 2.0.2
staple_eo.h
Go to the documentation of this file.
1 
14 #ifndef STAPLE_EO_INCLUDED
15 #define STAPLE_EO_INCLUDED
16 
17 #include "staple.h"
18 
19 #include "Field/shiftField_eo.h"
20 
21 #include "IO/bridgeIO.h"
22 
24 
33 class Staple_eo : public Staple
34 {
35  public:
36  static const std::string class_name;
37 
38  private:
40 
41  std::string m_filename_output;
42 
44 
46 
47  // Field_G m_staple;
51 
52  public:
53 
54  Staple_eo() { init(); }
55 
56  Staple_eo(const Parameters& params) { init(params); }
57 
58  ~Staple_eo() { tidyup(); }
59 
60  public:
61  void set_parameters(const Parameters& params);
62 
63  void get_parameters(Parameters& params) const;
64 
65  void upper(Field_G&, const Field_G&, const int, const int);
66 
67  void lower(Field_G&, const Field_G&, const int, const int);
68 
69  double plaq_s(const Field_G&);
70 
71  double plaq_t(const Field_G&);
72 
73  double plaquette(const Field_G&);
74 
75  void staple(Field_G&, const Field_G&, const int);
76 
77  private:
78  // initial setup (obsolete).
79  void init();
80 
81  // initial setup.
82  void init(const Parameters& params);
83 
84  // final clean-up.
85  void tidyup();
86 
87  double plaq_s_omp(const Field_G&);
88 
89  double plaq_t_omp(const Field_G&);
90 
91  double plaq_s_impl(const Field_G&);
92 
93  double plaq_t_impl(const Field_G&);
94 
95 
96 #ifdef USE_FACTORY
97  private:
98  static Staple *create_object()
99  {
100  return new Staple_eo();
101  }
102 
103  public:
104  static bool register_factory()
105  {
106  return Staple::Factory::Register("EvenOdd", create_object);
107  }
108 #endif
109 };
110 #endif
Staple_eo::plaq_s_omp
double plaq_s_omp(const Field_G &)
Definition: staple_eo.cpp:137
Staple_eo::set_parameters
void set_parameters(const Parameters &params)
setting parameters.
Definition: staple_eo.cpp:68
bridgeIO.h
ShiftField_eo
Methods to shift the even-odd field.
Definition: shiftField_eo.h:49
Staple_eo::m_vl
Bridge::VerboseLevel m_vl
Definition: staple_eo.h:39
Staple_eo::plaq_s
double plaq_s(const Field_G &)
calculates spatial plaquette value.
Definition: staple_eo.cpp:103
Parameters
Class for parameters.
Definition: parameters.h:46
Staple_eo::tidyup
void tidyup()
Definition: staple_eo.cpp:61
Staple_eo::~Staple_eo
~Staple_eo()
Definition: staple_eo.h:58
Staple_eo::m_shift
ShiftField_eo * m_shift
Definition: staple_eo.h:45
Staple_eo::plaq_s_impl
double plaq_s_impl(const Field_G &)
Definition: staple_eo.cpp:169
Staple_eo::class_name
static const std::string class_name
Definition: staple_eo.h:36
shiftField_eo.h
Staple_eo::m_Nvol
int m_Nvol
Definition: staple_eo.h:43
Staple_eo::plaq_t
double plaq_t(const Field_G &)
calculates temporal plaquette value.
Definition: staple_eo.cpp:120
Staple_eo::m_v1
Field_G m_v1
Definition: staple_eo.h:48
Staple_eo::init
void init()
Definition: staple_eo.cpp:27
Staple_eo::plaq_t_omp
double plaq_t_omp(const Field_G &)
Definition: staple_eo.cpp:153
Staple_eo::m_w2
Field_G m_w2
Definition: staple_eo.h:49
Staple_eo::plaq_t_impl
double plaq_t_impl(const Field_G &)
Definition: staple_eo.cpp:216
Staple_eo::m_w1
Field_G m_w1
Definition: staple_eo.h:49
Staple_eo::upper
void upper(Field_G &, const Field_G &, const int, const int)
constructs upper staple in mu-nu plane.
Definition: staple_eo.cpp:282
Staple_eo::plaquette
double plaquette(const Field_G &)
calculates plaquette value.
Definition: staple_eo.cpp:91
Staple_eo::m_v2
Field_G m_v2
Definition: staple_eo.h:48
Staple_eo::Staple_eo
Staple_eo()
Definition: staple_eo.h:54
Staple_eo::get_parameters
void get_parameters(Parameters &params) const
getting parameters.
Definition: staple_eo.cpp:83
staple.h
Staple_eo
Staple construction.
Definition: staple_eo.h:33
Staple_eo::m_Unu
Field_G m_Unu
Definition: staple_eo.h:50
Staple_eo::m_filename_output
std::string m_filename_output
Definition: staple_eo.h:41
Staple_eo::lower
void lower(Field_G &, const Field_G &, const int, const int)
constructs lower staple in mu-nu plane.
Definition: staple_eo.cpp:307
Staple
Base class for Staple construction.
Definition: staple.h:33
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Staple_eo::m_Umu
Field_G m_Umu
Definition: staple_eo.h:50
Staple_eo::staple
void staple(Field_G &, const Field_G &, const int)
constructs staple in mu-direction (summing up nu-direction).
Definition: staple_eo.cpp:258
Staple_eo::Staple_eo
Staple_eo(const Parameters &params)
Definition: staple_eo.h:56
Staple_eo::m_Ndim
int m_Ndim
Definition: staple_eo.h:43
Staple_eo::m_Nc
int m_Nc
Definition: staple_eo.h:43