<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="DOCTEXT"> <TITLE>MPE_Decomp1d</TITLE> </HEAD> <BODY BGCOLOR="FFFFFF"> <A NAME="MPE_Decomp1d"><H1>MPE_Decomp1d</H1></A> Compute a balanced decomposition of a 1-D array <H2>Synopsis</H2> <PRE> int MPE_Decomp1d( n, size, rank, s, e ) int n, size, rank, *s, *e; </PRE> <H2>Input Parameters</H2> <DL> <DT><B>n </B><DD>Length of the array <DT><B>size </B><DD>Number of processors in decomposition <DT><B>rank </B><DD>Rank of this processor in the decomposition (0 <= rank < size) </DL> <P> <H2>Output Parameters</H2> <DL><DT><B>s,e </B> <DD> Array indices are s:e, with the original array considered as 1:n. </DL> <P><B>Location:</B>../src/misc/src/decomp.c<P> </BODY></HTML>