template<int NDims = 4, typename Coord = int32_t, typename Idx = int64_t, int Flags = GRID_DEFAULT_FLAGS>
class SUNphi::Grid< NDims, Coord, Idx, Flags >
A grid of points spanning an hypercubic grid.
Definition at line 402 of file Grid.hpp.
template<int NDims = 4, typename Coord = int32_t, typename Idx = int64_t, int Flags = GRID_DEFAULT_FLAGS>
Type to hold sizes, coordinate, etc
Definition at line 416 of file Grid.hpp.
template<int NDims = 4, typename Coord = int32_t, typename Idx = int64_t, int Flags = GRID_DEFAULT_FLAGS>
Compte the coordinate of point i.
Result
Dividend, corresponding to the mu
side length
Quozient, corresponding to the index of the remaining nDims-1
components
Remainder, corresponding to the coordinate
Definition at line 596 of file Grid.hpp.
template<int NDims = 4, typename Coord = int32_t, typename Idx = int64_t, int Flags = GRID_DEFAULT_FLAGS>
Compute the point of given coords.
< Coordinates of the point
Returned point
Grid side
Definition at line 627 of file Grid.hpp.
template<int NDims = 4, typename Coord = int32_t, typename Idx = int64_t, int Flags = GRID_DEFAULT_FLAGS>
void SUNphi::Grid< NDims, Coord, Idx, Flags >::setVolume |
( |
| ) |
|
|
inlineprivate |
Set the volume, calling computing routine.
Output volume, initially 1
Definition at line 427 of file Grid.hpp.
template<int NDims = 4, typename Coord = int32_t, typename Idx = int64_t, int Flags = GRID_DEFAULT_FLAGS>
Coords SUNphi::Grid< NDims, Coord, Idx, Flags >::shiftedCoords |
( |
const Coords & |
in, |
|
|
const int |
oriDir, |
|
|
const Coord |
amount = 1 |
|
) |
| const |
|
inline |
Returns the coordinates shifted in the asked direction
Periodic boundary conditions are always assumed
Returned coordinates
Orientation
Direction to shift
Offset to add
Destintion not considering wrap
Actual destintion
Absolute number of boundaries passed
- Parameters
-
in | Input coordinates |
oriDir | Oriented direction |
amount | Number of steps |
Definition at line 653 of file Grid.hpp.