IDs and Arrays of IDs
Allocating IDs
Common Operations on IDs
ZOLTAN_ID_PTR ZOLTAN_MALLOC_GID(struct Zoltan_Struct *zz); | Allocates and returns a pointer to a single global ID. |
ZOLTAN_ID_PTR ZOLTAN_MALLOC_LID(struct Zoltan_Struct *zz); | Allocates and returns a pointer to a single local ID. |
ZOLTAN_ID_PTR ZOLTAN_MALLOC_GID_ARRAY(struct Zoltan_Struct *zz, int n); | Allocates and returns a pointer to an array of n global IDs, where the index into the array for the ith global ID is i*NUM_GID_ENTRIES. |
ZOLTAN_ID_PTR ZOLTAN_MALLOC_LID_ARRAY(struct Zoltan_Struct *zz, int n); | Allocates and returns a pointer to an array of n local IDs, where the index into the array for the ith local ID is i*NUM_LID_ENTRIES. |
ZOLTAN_ID_PTR ZOLTAN_REALLOC_GID_ARRAY(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR ptr, int n); | Reallocates and returns a pointer to an array of n global IDs, replacing the current array pointed to by ptr. |
ZOLTAN_ID_PTR ZOLTAN_REALLOC_LID_ARRAY(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR ptr, int n); | Reallocates and returns a pointer to an array of n local IDs, replacing the current array pointed to by ptr. |
void ZOLTAN_INIT_GID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR id); | Initializes all entries of the global ID id to zero; id must be allocated before calling ZOLTAN_INIT_GID. |
void ZOLTAN_INIT_LID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR id); | Initializes all entries of the local ID id to zero; id must be allocated before calling ZOLTAN_INIT_LID. |
void ZOLTAN_SET_GID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR tgt, ZOLTAN_ID_PTR src); | Copies the global ID src into the global ID tgt. Both src and tgt must be allocated before calling ZOLTAN_SET_LID. |
void ZOLTAN_SET_LID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR tgt, ZOLTAN_ID_PTR src); | Copies the local ID src into the local ID tgt. Both src and tgt must be allocated before calling ZOLTAN_SET_LID. |
int ZOLTAN_EQ_GID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR a, ZOLTAN_ID_PTR b); | Returns TRUE if global ID a is equal to global ID b. |
void ZOLTAN_PRINT_GID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR id); | Prints all entries of a single global ID id. |
void ZOLTAN_PRINT_LID(struct Zoltan_Struct *zz, ZOLTAN_ID_PTR id); | Prints all entries of a single local ID id. |