MPE_Decomp1d(4)
NAME
MPE_Decomp1d - Compute a balanced decomposition of a 1-D
array
SYNOPSIS
#include
#include "mpe.h"
int MPE_Decomp1d( n, size, rank, s, e )
int n, size, rank, *s, *e;
INPUT PARAMETERS
n - Length of the array
size - Number of processors in decomposition
rank - Rank of this processor in the decomposition (0 <= SIZE) RANK < OUTPUT PARAMETERS
s,e - Array indices are s:e, with the original array con-
sidered as 1:n.
LOCATION
decomp.c
Last change: 5/28/1996