14 #ifndef INDEX_EO_INCLUDED
15 #define INDEX_EO_INCLUDED
62 if ((
m_Nx % 2) == 1) {
80 for (
int t = 0; t <
m_Nt; ++t) {
81 for (
int z = 0; z <
m_Nz; ++z) {
82 for (
int y = 0; y <
m_Ny; ++y) {
83 int t_global = t + ipe_t *
m_Nt;
84 int z_global = z + ipe_z *
m_Nz;
85 int y_global = y + ipe_y *
m_Ny;
87 m_yzt_eo[y + m_Ny * (z + m_Nz * t)] = (y_global + z_global + t_global) % 2;
92 for (
int t = 0; t <
m_Nt; ++t) {
93 for (
int z = 0; z <
m_Nz; ++z) {
94 for (
int y = 0; y <
m_Ny; ++y) {
95 int yzt = y + m_Ny * (z + m_Nz * t);
97 for (
int x2 = 0; x2 <
m_Nx2; ++x2) {
98 int s = x2 + m_Nx2 * (y + m_Ny * (z + m_Nz * t));
99 m_Site_up[s] = ((x2 +
m_yzt_eo[yzt]) % m_Nx2) + m_Nx2 * (y + m_Ny * (z + m_Nz * t));
109 int leo(
const int y,
const int z,
const int t)
const
114 int site(
const int x2,
const int y,
const int z,
const int t,
120 int site(
const int is,
const int ieo)
const
125 int site_up(
const int x2,
const int y,
const int z,
const int t,
133 int site_xup(
const int x2,
const int y,
const int z,
const int t,
141 int site_dn(
const int x2,
const int y,
const int z,
const int t,
149 int site_xdn(
const int x2,
const int y,
const int z,
const int t,
157 int siteh(
const int x2,
const int y,
const int z,
const int t)
163 int siteh_up(
const int x2,
const int y,
const int z,
const int t,
171 int siteh_xup(
const int x2,
const int y,
const int z,
const int t,
179 int siteh_dn(
const int x2,
const int y,
const int z,
const int t,
187 int siteh_xdn(
const int x2,
const int y,
const int z,
const int t,
int site_xup(const int x2, const int y, const int z, const int t, const int ieo) const
int siteh(const int x2, const int y, const int z, const int t) const
int site(const int is, const int ieo) const
Container of Field-type object.
int site(const int x2, const int y, const int z, const int t, const int ieo) const
int site_up(const int x2, const int y, const int z, const int t, const int ieo) const
static int ipe(const int dir)
logical coordinate of current proc.
std::valarray< int > m_Site_dn
void convertField(Field &eo, const Field &lex)
int leo(const int y, const int z, const int t) const
void mergeField(Field &eo, const Field &e, const Field &o)
int siteh_up(const int x2, const int y, const int z, const int t, const int ieo) const
int siteh_xup(const int x2, const int y, const int z, const int t, const int ieo) const
int siteh_xdn(const int x2, const int y, const int z, const int t, const int ieo) const
int site_xdn(const int x2, const int y, const int z, const int t, const int ieo) const
Common parameter class: provides parameters as singleton.
Bridge::VerboseLevel m_vl
int site_dn(const int x2, const int y, const int z, const int t, const int ieo) const
void crucial(const char *format,...)
std::valarray< int > m_yzt_eo
int siteh_dn(const int x2, const int y, const int z, const int t, const int ieo) const
void reverseField(Field &lex, const Field &eo)
void splitField(Field &e, Field &o, const Field &eo)
std::valarray< int > m_Site_up