su2hmc
Loading...
Searching...
No Matches
coord.h File Reference

Header for routines related to lattice sites. More...

#include <math.h>
#include <sizes.h>
Include dependency graph for coord.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int Addrc (unsigned int *iu, unsigned int *id)
 Loads the addresses required during the update.
int ia (int x, int y, int z, int t)
 Described as a 21st Century address calculator, it gets the memory address of an array entry.
int Check_addr (unsigned int *table, int lns, int lnt, int imin, int imax)
 Checks that the addresses are within bounds before an update.
int Index2lcoord (int index, int *coord)
 Converts the index of a point in memory to the equivalent point in the 4 dimensional array, where the time index is the last coordinate in the array.
int Index2gcoord (int index, int *coord)
 Converts the index of a point in memory to the equivalent point in the 4 dimensional array, where the time index is the last coordinate in the array.
int Coord2lindex (int ix, int iy, int iz, int it)
 Converts the coordinates of a local lattice point to its index in the computer memory.
int Coord2gindex (int ix, int iy, int iz, int it)
 Converts the coordinates of a global lattice point to its index in the computer memory.
int Testlcoord (int cap)
 Tests if the local coordinate transformation functions are working.
int Testgcoord (int cap)
 This is completely new and missing from the original code.

Variables

unsigned int h1u [ndim]
 Up halo starting element.
unsigned int h1d [ndim]
 Down halo starting element.
unsigned int * hu
 Up halo indices.
unsigned int * hd
 Down halo indices.
unsigned int halosize [ndim]
 Array containing the size of the halo in each direction.

Detailed Description

Header for routines related to lattice sites.

Definition in file coord.h.

Variable Documentation

◆ h1d

unsigned int h1d[ndim]
extern

Down halo starting element.

Definition at line 12 of file coord.c.

◆ h1u

unsigned int h1u[ndim]
extern

Up halo starting element.

Definition at line 12 of file coord.c.

◆ halosize

unsigned int halosize[ndim]
extern

Array containing the size of the halo in each direction.

Definition at line 12 of file coord.c.

◆ hd

unsigned int* hd
extern

Down halo indices.

Definition at line 11 of file coord.c.

◆ hu

unsigned int* hu
extern

Up halo indices.

Definition at line 11 of file coord.c.