Bridge++  Ver. 1.1.x
 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 
18 #include "commonParameters.h"
19 #include "communicator.h"
20 //#include "field_F.h"
21 //#include "field_G.h"
22 #include "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 Svol;
40 
41  public:
43  m_Nvol(CommonParameters::Nvol()),
44  m_Nd(CommonParameters::Nd())
45  {
46  int Nc = CommonParameters::Nc();
47 
48  m_Nc2 = 2 * Nc;
49  int Nt = CommonParameters::Nt();
50  Svol = m_Nvol / Nt;
51  }
52 
57  {
58  if (Communicator::ipe(3) == 0) {
59  for (int site = 0; site < Svol; ++site) {
60  for (int s = 0; s < m_Nd; ++s) {
61  for (int cc = 0; cc < m_Nc2; ++cc) {
62  f.set(cc + m_Nc2 * s, site, 0, 0.0);
63  }
64  }
65  }
66  }
67  }
68 };
69 #endif