Bridge++  Ver.2.1.3
astaple_lex.h
Go to the documentation of this file.
1 
10 #ifndef ACCEL_ASTAPLE_LEX_INCLUDED
11 #define ACCEL_ASTAPLE_LEX_INCLUDED
12 
13 // core library
14 #include "lib/IO/bridgeIO.h"
15 
16 // alt-code
18 
20 
27 template<typename AFIELD>
28 class AStaple_lex
29 {
30  public:
31  typedef typename AFIELD::real_t real_t;
32  static const std::string class_name;
33 
34  private:
36 
38 
40 
43 
45  void init();
46 
48  void tidyup();
49 
50  public:
51 
52  AStaple_lex(){ init(); }
53 
55 
57  // void set_parameters(const Parameters& params);
58 
60  void plaquette(real_t& plaq, const AFIELD&);
61 
63  void plaq_s(real_t& plaq_s, const AFIELD&);
64 
66  void plaq_t(real_t& plaq_t, const AFIELD&);
67 
69  void staple(AFIELD&, const AFIELD&, const int mu);
70 
72  void upper(AFIELD&, const AFIELD&, const int mu, const int nu);
73 
75  void lower(AFIELD&, const AFIELD&, const int mu, const int nu);
76 
78  void shift_forward(AFIELD& v, const int ex1,
79  const AFIELD& w, const int ex2, const int mu)
80  { m_shift->forward(v, ex1, w, ex2, mu); }
81 
83  void shift_backward(AFIELD& v, const int ex1,
84  const AFIELD& w, const int ex2, const int mu)
85  { m_shift->backward(v, ex1, w, ex2, mu); }
86 
87 };
88 #endif
bridgeIO.h
AStaple_lex::m_v2
AFIELD m_v2
Definition: astaple_lex.h:41
AStaple_lex::tidyup
void tidyup()
final tidy up.
Definition: astaple_lex-tmpl.h:36
AStaple_lex::shift_backward
void shift_backward(AFIELD &v, const int ex1, const AFIELD &w, const int ex2, const int mu)
same as lower, but to be called inside a parallel region.
Definition: astaple_lex.h:83
AStaple_lex::AStaple_lex
AStaple_lex()
Definition: astaple_lex.h:52
AStaple_lex::staple
void staple(AFIELD &, const AFIELD &, const int mu)
constructs staple in mu-direction (summing up nu-direction).
Definition: astaple_lex-tmpl.h:117
AStaple_lex::real_t
AFIELD::real_t real_t
Definition: astaple_lex.h:31
AStaple_lex::m_Nvol
int m_Nvol
Definition: astaple_lex.h:35
ShiftAField_lex
Shift of a field in the lexical site index.
Definition: shiftAField_lex.h:28
AStaple_lex::lower
void lower(AFIELD &, const AFIELD &, const int mu, const int nu)
constructs lower staple in mu-nu plane.
Definition: astaple_lex-tmpl.h:159
Field::real_t
double real_t
Definition: field.h:51
AStaple_lex::~AStaple_lex
~AStaple_lex()
Definition: astaple_lex.h:54
AStaple_lex::plaq_t
void plaq_t(real_t &plaq_t, const AFIELD &)
calculates temporal plaquette value.
Definition: astaple_lex-tmpl.h:88
AStaple_lex
Staple construction.
Definition: afopr_CloverTerm.h:27
AStaple_lex::m_shift
ShiftAField_lex< AFIELD > * m_shift
Definition: astaple_lex.h:39
AStaple_lex::shift_forward
void shift_forward(AFIELD &v, const int ex1, const AFIELD &w, const int ex2, const int mu)
same as lower, but to be called inside a parallel region.
Definition: astaple_lex.h:78
shiftAField_lex.h
AStaple_lex::class_name
static const std::string class_name
Definition: astaple_lex.h:32
AStaple_lex::plaquette
void plaquette(real_t &plaq, const AFIELD &)
setting parameters.
Definition: astaple_lex-tmpl.h:43
AStaple_lex::m_Umu
AFIELD m_Umu
working fields.
Definition: astaple_lex.h:42
real_t
double real_t
Definition: bridgeACC_AField_double.cpp:14
AStaple_lex::m_Ndim
int m_Ndim
Definition: astaple_lex.h:35
AStaple_lex::upper
void upper(AFIELD &, const AFIELD &, const int mu, const int nu)
constructs upper staple in mu-nu plane.
Definition: astaple_lex-tmpl.h:139
AStaple_lex::plaq_s
void plaq_s(real_t &plaq_s, const AFIELD &)
calculates spatial plaquette value.
Definition: astaple_lex-tmpl.h:55
AStaple_lex::m_vl
Bridge::VerboseLevel m_vl
Definition: astaple_lex.h:37
AStaple_lex::m_v1
AFIELD m_v1
Definition: astaple_lex.h:41
AStaple_lex::m_Ndf
int m_Ndf
Definition: astaple_lex.h:35
AStaple_lex::m_v3
AFIELD m_v3
working fields.
Definition: astaple_lex.h:41
Field
Container of Field-type object.
Definition: field.h:46
AStaple_lex::init
void init()
initial setup.
Definition: astaple_lex-tmpl.h:15
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:45