Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
field_F_SF.h
Go to the documentation of this file.
1 
15 #ifndef FIELD_F_SF_INCLUDED
16 #define FIELD_F_SF_INCLUDED
17 
20 //#include "field_F.h"
21 //#include "field_G.h"
22 #include "Tools/vec_SU_N.h"
23 
25 
33 class Field_F_SF {
34  private:
35  int m_Nc2; // num of the double color elements
36  int m_Nvol; // lattice volume
37  int m_Nd; // num of the spinor elements
38  int m_Nin; // internal d.o.f.
39  int m_Svol;
40 
41  public:
43  m_Nvol(CommonParameters::Nvol()),
44  m_Nd(CommonParameters::Nd())
45  {
48  }
49 
54  {
55  if (Communicator::ipe(3) == 0) {
56  for (int site = 0; site < m_Svol; ++site) {
57  for (int s = 0; s < m_Nd; ++s) {
58  for (int cc = 0; cc < m_Nc2; ++cc) {
59  f.set(cc + m_Nc2 * s, site, 0, 0.0);
60  }
61  }
62  }
63  }
64  }
65 };
66 #endif
void set(const int jin, const int site, const int jex, double v)
Definition: field.h:175
int m_Nvol
Definition: field_F_SF.h:36
Container of Field-type object.
Definition: field.h:45
int m_Svol
Definition: field_F_SF.h:39
static int ipe(const int dir)
logical coordinate of current proc.
Common parameter class: provides parameters as singleton.
void set_boundary_zero(Field &f)
Definition: field_F_SF.h:53
A class generated to add a function for the SF.
Definition: field_F_SF.h:33