// -----------------------------------------------------------------
// Directions, links, and macros to give their opposites
// MPI communications assume directions from 0 to 7
// !!! TDOWN is the same as DIR_5 -- use goffset to be safe
#ifndef _DIRS_H
#define _DIRS_H

#define NDIMS 4       // Number of dimensions
#define NODIR -1      // Not a direction
#define XUP 0
#define YUP 1
#define ZUP 2
#define TUP 3
#define TDOWN 4
#define ZDOWN 5
#define YDOWN 6
#define XDOWN 7
#define OPP_DIR(dir) (7 - (dir))  // Opposite spacetime direction

#define NUMLINK 5
#define NPLAQ 10                  // NUMLINK * (NUMLINK - 1 ) / 2
#define DIR_5 4
#define OPP_LDIR(dir) (9 - (dir)) // Opposite link direction

#endif
// -----------------------------------------------------------------
