DragonFly On-Line Manual Pages
BSoffset(3) BlockSolve95 BSoffset(3)
NAME
BSoffset - Find a consistent global numbering
INPUT PARAMETERS
length - number of classes of things to order
array - the number of things in each class on this processor
procinfo
- the usual processor stuff
OUTPUT PARAMETERS
offsets
- the beginning number for each class on this processor in the
global numbering
RETURNS
the number of classes across all the processors
NOTES
This routine, given a list of totals, finds where we should be
numbered. For example, if proc 0 submits a list of 10 and 20 and proc
1 submits a list of 5 and 11 and proc 2 submits a list of 6 and 9, we
want to do a tree ordering where proc 0 gets back 5 and 32, proc 1 gets
back 0 and 21 and proc 2 gets back 15 and 52.
SYNOPSIS
int BSoffset(int length, int *array, int **offsets, BSprocinfo *procinfo)
LOCATION
BlockSolve95/src/BSoffset.c
10/27/1995 BSoffset(3)