Zoltan_Color
C: | int Zoltan_Color (
struct Zoltan_Struct *zz, int num_gid_entries, int num_obj, ZOLTAN_ID_PTR global_ids, int *color_exp); |
FORTRAN: | Not yet available. |
C++: | int Zoltan::Color (
int &num_gid_entries, const int &num_obj, ZOLTAN_ID_PTR global_ids, int *color_exp); |
Arguments: | |
zz | Pointer to the Zoltan structure, created by Zoltan_Create, to be used in this invocation of the load-balancing routine. |
num_gid_entries | Input: the number of array entries used to describe a single global ID. This value is the maximum value over all processors of the parameter NUM_GID_ENTRIES. |
num_obj | Number of objects for which we want to know the color on this processor. Objects may be non-local or duplicated. |
global_ids | An array of global IDs of objects for which we want to know the
color on this processor. Size of this array must be
num_obj. Objects may be non-local. Objects IDs may be repeated on several processor. |
color_exp | Upon return, an array of length num_obj containing the colors of objects. That is, color_exp[i] gives the color of global_ids[i] in the computed coloring. By default, colors are positive integers starting at one. Memory for this array must have been allocated before Zoltan_Color is called. |
Returned Value: | |
int | Error code. |