HiRep 0.1
Loading...
Searching...
No Matches
geometry_indexing.h File Reference

Finding indices from coordinates and the other way around. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _lexi(_T, _X, _Y, _Z, _t, _x, _y, _z)
 
#define ipt_ext(t, x, y, z)
 
#define ipt_ext_gpu(t, x, y, z)
 
#define ipt(t, x, y, z)
 
#define imask(ix)
 
#define ipt_4d(t, x)
 
#define iup(site, dir)
 
#define idn(site, dir)
 
#define _PTR(_field)
 

Detailed Description

Finding indices from coordinates and the other way around.

Macro Definition Documentation

◆ _lexi

#define _lexi ( _T,
_X,
_Y,
_Z,
_t,
_x,
_y,
_z )
Value:
((((_t) * (_X) + (_x)) * (_Y) + (_y)) * (_Z) + (_z))

◆ _PTR

#define _PTR ( _field)
Value:
(_field)->gpu_ptr

◆ idn

#define idn ( site,
dir )
Value:
idn[(site) * 4 + (dir)]

◆ imask

#define imask ( ix)
Value:
imask[ix]

◆ ipt

#define ipt ( t,
x,
y,
z )
Value:
ipt_ext((t) + T_BORDER, (x) + X_BORDER, (y) + Y_BORDER, (z) + Z_BORDER)

◆ ipt_4d

#define ipt_4d ( t,
x )
Value:
ipt_4d[(t) * (VOL3) + (x)]

◆ ipt_ext

#define ipt_ext ( t,
x,
y,
z )
Value:
ipt[_lexi(T_EXT, X_EXT, Y_EXT, Z_EXT, t, x, y, z)]

◆ ipt_ext_gpu

#define ipt_ext_gpu ( t,
x,
y,
z )
Value:
ipt_gpu[_lexi(T_EXT_GPU, X_EXT_GPU, Y_EXT_GPU, Z_EXT_GPU, t, x, y, z)]

◆ iup

#define iup ( site,
dir )
Value:
iup[(site) * 4 + (dir)]