Bridge++
Ver. 1.1.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
index_lex.h
Go to the documentation of this file.
1
15
#ifndef INDEX_LEX_INCLUDED
16
#define INDEX_LEX_INCLUDED
17
18
#include "
commonParameters.h
"
19
21
34
class
Index_lex
{
35
protected
:
36
int
m_Nx
,
m_Ny
,
m_Nz
,
m_Nt
;
37
38
public
:
39
Index_lex
() :
40
m_Nx
(
CommonParameters
::Nx()),
41
m_Ny
(
CommonParameters
::Ny()),
42
m_Nz
(
CommonParameters
::Nz()),
43
m_Nt
(
CommonParameters
::Nt()) { }
44
45
Index_lex
(
int
Nx,
int
Ny,
int
Nz,
int
Nt)
46
{
47
m_Nx
= Nx;
48
m_Ny
= Ny;
49
m_Nz
= Nz;
50
m_Nt
= Nt;
51
}
52
53
int
site
(
const
int
& x,
const
int
& y,
const
int
& z,
const
int
& t)
54
const
55
{
56
return
m_Nx
* (
m_Ny
* (
m_Nz
* t + z) + y) + x;
57
}
58
};
59
#endif
src
Field
index_lex.h
Generated on Tue Jul 23 2013 10:48:48 for Bridge++ by
1.8.3.1