Classes |
struct | s_SIZEDSTRING |
| String with size. More...
|
Defines |
#define | inline |
#define | restrict |
#define | DT_CSTRING 1 |
#define | DT_CHAR 2 |
#define | DT_SHORT 3 |
#define | DT_INT 4 |
#define | DT_LONG 5 |
#define | DT_FLOAT 6 |
#define | DT_DOUBLE 7 |
#define | DT_USHORT 9 |
#define | DT_UINT 10 |
#define | DT_ULONG 11 |
#define | DT_REAL DT_FLOAT |
| Real type and consts.
|
#define | ireal float |
| ** real type >
|
#define | REAL_NAN 0.0f |
#define | REAL_ZERO 0.0f |
#define | REAL_ONE 1.0f |
#define | REAL_EPS FLT_EPSILON |
#define | REAL_MIN FLT_MIN |
#define | REAL_MAX FLT_MAX |
#define | IWAVE_MPI_REAL MPI_FLOAT |
#define | RDOM_MAX_NARR 30 |
| Maximum number of arrays in any domain.
|
#define | RARR_MAX_NDIM 7 |
| Maximum number of dimensions in any array.
|
#define | IWAVE_NDIM 3 |
#define | IWAVE_3NDIM 27 |
#define | IWAVE_NNEI (IWAVE_3NDIM - 1) |
#define | IX 0 |
#define | IY 1 |
#define | IZ 2 |
#define | RARR_DUMP_POINTERS 0 |
#define | IARR_MAX_NDIM 7 |
#define | RARR_MAX_3NDIM 2187 |
#define | _IPNT IPNT |
#define | _RPNT RPNT |
#define | CHECK_BOUNDS |
#define | PS_SEP '=' |
#define | PS_QUO '"' |
#define | iwave_min(a, b) ((a) < (b) ? (a) : (b)) |
#define | iwave_max(a, b) ((a) > (b) ? (a) : (b)) |
#define | iwave_abs(a) ((a) < REAL_ZERO ? (-a) : (a)) |
#define | E_SUCCESS 0 |
| no error
|
#define | E_INTERNAL 1000 |
| internal error, should not happen
|
#define | E_OTHER 2000 |
| some other error
|
#define | E_ALLOC 1 |
| cannot (re/m/c)alloc, etc
|
#define | E_BADINPUT 2 |
| incorrect input data
|
#define | E_OUTOFBOUNDS 3 |
| if array bound check failed
|
#define | E_BADINDEX 4 |
| wrong index
|
#define | E_BADARRINDEX 5 |
| wrong array index in the domain
|
#define | E_BADDIMINDEX 6 |
| wrong dimension index in the array
|
#define | E_FILE 7 |
| problem with file operations
|
#define | E_FILEOPEN 8 |
| problem opening file
|
#define | E_MPI 9 |
| mpi function returned error code
|
#define | E_DOMAINDECOMP 10 |
| could not do domain decomposition
|
#define | E_PARSE 11 |
| problem with parsing parameter file
|
#define | E_PARSENONAME 12 |
| name not found
|
#define | E_PARSENOVALUE 13 |
| value not found
|
#define | E_PARSECONVERT 14 |
| cannot convert
|
#define | E_ALREADYALLOC 15 |
| allocating already allocated array
|
#define | E_RANGE -2 |
| out of range
|
#define | E_OVERFLOW -3 |
| out of range - overflow
|
#define | E_UNDERFLOW -4 |
| out of range - underflow
|
#define | E_NOTIMESTEP -100 |
| no time step needed for array
|
#define | E_NOTINGRID -200 |
| process with these indices not in domain decomposition grid
|
#define | SEAMX_BIG_ENDIAN 0 |
#define | SEAMX_LITTLE_ENDIAN 1 |
Typedefs |
typedef int | IPNT [IARR_MAX_NDIM] |
typedef ireal | RPNT [RARR_MAX_NDIM] |
typedef struct s_SIZEDSTRING | SIZEDSTRING |
| String with size.
|
Functions |
int * | IASN (IPNT l, const IPNT r) |
| Assignment of IPNT r to IPNT l.
|
ireal * | RASN (RPNT l, const RPNT r) |
| Assignment of RPNT r to RPNT l.
|
void * | usermalloc_ (size_t size) |
| Modified malloc/free functions.
|
void | userfree_ (void *ptr) |
int | gen_3n1 (int ndim, int *n) |
int | gen_i2pnt (int ndim, int i, IPNT p) |
int | gen_pnt2i (int ndim, const IPNT p, int *i) |
void | storeRank (int rk) |
int | retrieveRank () |
void | storeSize (int sz) |
int | retrieveSize () |
void | storeComm (MPI_Comm cm) |
MPI_Comm | retrieveComm () |
void | storeOutstream (FILE *stream) |
FILE * | retrieveOutstream () |
void | storeGlobalRank (int rk) |
int | retrieveGlobalRank () |
void | storeGlobalSize (int sz) |
int | retrieveGlobalSize () |
void | storeGlobalComm (MPI_Comm cm) |
MPI_Comm | retrieveGlobalComm () |
void | storeThreadSupp (int ts) |
int | retrieveThreadSupp () |
void | storeGroupID (int) |
int | retrieveGroupID () |
void | storeNumGroups (int) |
int | retrieveNumGroups () |
void | storeRemComm (MPI_Comm cm) |
MPI_Comm | retrieveRemComm () |
int | getMachineEndianness () |
void | swapBytes (unsigned char *arr, int arrsize, int atomsize) |
Author: Igor Terentyev.
Utilities:
Constants. Data type [ireal]. Data type flags. Point arrays. Aligned malloc. Separator, delimiter for parser. All error codes.
Definition in file utils.h.