16#if (defined__INTEL_COMPILER || __INTEL_LLVM_COMPILER)
19#if defined __USE_MKL__
24#include <gsl/gsl_cblas.h>
38extern unsigned int *
hu;
40extern unsigned int *
hd;
60 int Addrc(
unsigned int *iu,
unsigned int *
id);
73 int ia(
int x,
int y,
int z,
int t);
86 int Check_addr(
unsigned int *table,
int lns,
int lnt,
int imin,
int imax);
unsigned int halosize[ndim]
Array containing the size of the halo in each direction.
unsigned int * hd
Down halo indices.
unsigned int * hu
Up halo indices.
unsigned int h1d[ndim]
Down halo starting element.
unsigned int h1u[ndim]
Up halo starting element.
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 Check_addr(unsigned int *table, int lns, int lnt, int imin, int imax)
Checks that the addresses are within bounds before an update.
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 Testlcoord(int cap)
Tests if the local coordinate transformation functions are working.
int Index2lcoord(int index, int *coord)
Converts the index of a point in memory to the equivalent point in the 4 dimensional array,...
int Index2gcoord(int index, int *coord)
Converts the index of a point in memory to the equivalent point in the 4 dimensional array,...
int Testgcoord(int cap)
This is completely new and missing from the original code.
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.
Defines the constants of the code and other parameters for loop dimensions. Each subroutine includes ...