10.3.5 Generate_Even_Distribution Procedure

The Generate_Even_Distribution procedure sets a short vector (on the order of NPEs) to the most even distribution of items possible, on every PE. It can be used to generate an even distribution for the Length_Vector to initialize a Base_Structure object.

Calling syntax:

call Generate_Even_Distribution (Vector, NItems) |

Input variable:

NItems |
The number of items to be distributed. |

Output variable:

Vector |
The vector with an even distribution of items. |

The Generate_Even_Distribution code listing contains additional documentation.

Michael L. Hall