Bridge++  Ver. 2.0.2
shiftField_lex.h
Go to the documentation of this file.
1 
14 #ifndef SHIFTFIELD_LEX_INCLUDED
15 #define SHIFTFIELD_LEX_INCLUDED
16 
17 #include "field.h"
18 #include "index_lex.h"
19 
20 #include "IO/bridgeIO.h"
21 using Bridge::vout;
22 
24 
40  public:
41  static const std::string class_name;
42 
43  private:
44  int m_Nin;
45  int m_Nx, m_Ny, m_Nz, m_Nt;
46  int m_Nvol;
47 
49 
54 
55  public:
57 
58  ShiftField_lex(const int Nin) { init(Nin); }
59 
60  private:
61  // non-copyable
64 
65  public:
66  void forward(Field&, const Field&, const int mu);
67  void backward(Field&, const Field&, const int mu);
68 
69  void forward(Field&, const Field&,
70  const int boundary_condition, const int mu);
71  void backward(Field&, const Field&,
72  const int boundary_condition, const int mu);
73 
74  private:
75 
76  // initial setup: Nin > 0 leads to resetting the working vectors.
77  void init(const int Nin = 0);
78 
79  void up_x(Field&, const Field&, const int boundary_condition);
80  void up_y(Field&, const Field&, const int boundary_condition);
81  void up_z(Field&, const Field&, const int boundary_condition);
82  void up_t(Field&, const Field&, const int boundary_condition);
83 
84  void dn_x(Field&, const Field&, const int boundary_condition);
85  void dn_y(Field&, const Field&, const int boundary_condition);
86  void dn_z(Field&, const Field&, const int boundary_condition);
87  void dn_t(Field&, const Field&, const int boundary_condition);
88 };
89 
90 #endif
bridgeIO.h
ShiftField_lex::up_z
void up_z(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:486
ShiftField_lex::m_vt_y
Field m_vt_y
comm. buffer in y-direction
Definition: shiftField_lex.h:51
ShiftField_lex::m_vl
Bridge::VerboseLevel m_vl
Definition: shiftField_lex.h:48
ShiftField_lex::up_t
void up_t(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:670
ShiftField_lex::m_Nz
int m_Nz
Definition: shiftField_lex.h:45
ShiftField_lex::forward
void forward(Field &, const Field &, const int mu)
Definition: shiftField_lex.cpp:79
ShiftField_lex::m_Nin
int m_Nin
Definition: shiftField_lex.h:44
ShiftField_lex::m_Nt
int m_Nt
Definition: shiftField_lex.h:45
ShiftField_lex::m_vt_t
Field m_vt_t
comm. buffer in t-direction
Definition: shiftField_lex.h:53
ShiftField_lex::ShiftField_lex
ShiftField_lex(const int Nin)
Definition: shiftField_lex.h:58
ShiftField_lex::m_Nvol
int m_Nvol
Definition: shiftField_lex.h:46
ShiftField_lex::m_Ny
int m_Ny
Definition: shiftField_lex.h:45
ShiftField_lex::dn_y
void dn_y(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:396
ShiftField_lex::m_wt_t
Field m_wt_t
Definition: shiftField_lex.h:53
ShiftField_lex::init
void init(const int Nin=0)
Definition: shiftField_lex.cpp:21
ShiftField_lex::dn_z
void dn_z(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:578
ShiftField_lex::ShiftField_lex
ShiftField_lex()
Definition: shiftField_lex.h:56
ShiftField_lex::up_y
void up_y(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:306
ShiftField_lex::dn_x
void dn_x(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:223
ShiftField_lex::class_name
static const std::string class_name
Definition: shiftField_lex.h:41
field.h
index_lex.h
ShiftField_lex::up_x
void up_x(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:140
ShiftField_lex
Methods to shift a field in the lexical site index.
Definition: shiftField_lex.h:39
ShiftField_lex::m_wt_y
Field m_wt_y
Definition: shiftField_lex.h:51
ShiftField_lex::backward
void backward(Field &, const Field &, const int mu)
Definition: shiftField_lex.cpp:59
ShiftField_lex::dn_t
void dn_t(Field &, const Field &, const int boundary_condition)
Definition: shiftField_lex.cpp:756
ShiftField_lex::m_wt_x
Field m_wt_x
Definition: shiftField_lex.h:50
Field
Container of Field-type object.
Definition: field.h:46
ShiftField_lex::m_Nx
int m_Nx
Definition: shiftField_lex.h:45
ShiftField_lex::m_wt_z
Field m_wt_z
Definition: shiftField_lex.h:52
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
ShiftField_lex::operator=
ShiftField_lex & operator=(const ShiftField_lex &)
ShiftField_lex::m_vt_x
Field m_vt_x
comm. buffer in x-direction
Definition: shiftField_lex.h:50
ShiftField_lex::m_vt_z
Field m_vt_z
comm. buffer in z-direction
Definition: shiftField_lex.h:52
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512