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

functions for dealing with lattice and MPI coordinates More...

#include <par_mpi.h>
#include <su2hmc.h>
Include dependency graph for coord.c:

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.
int ComplexConvert (Complex_f *a, Complex *b, const unsigned int len, const bool dtof, const unsigned short stride)
 takes an array of complex float and double precision numbers and converts the precision

Variables

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.
unsigned int h1u [ndim]
 Up halo starting element.
unsigned int h1d [ndim]
 Down halo starting element.

Detailed Description

functions for dealing with lattice and MPI coordinates

Definition in file coord.c.

Variable Documentation

◆ h1d

unsigned int h1d[ndim]

Down halo starting element.

Definition at line 12 of file coord.c.

◆ h1u

unsigned int h1u[ndim]

Up halo starting element.

Definition at line 12 of file coord.c.

◆ halosize

unsigned int halosize[ndim]

Array containing the size of the halo in each direction.

Definition at line 12 of file coord.c.

◆ hd

unsigned int * hd

Down halo indices.

Definition at line 11 of file coord.c.

◆ hu

unsigned int* hu

Up halo indices.

Definition at line 11 of file coord.c.