.TH BSoffset 3 "10/27/1995" " " "BlockSolve95" .SH NAME BSoffset \- Find a consistent global numbering .SH INPUT PARAMETERS .PD 0 .TP .B length - number of classes of things to order .PD 1 .PD 0 .TP .B array - the number of things in each class on this processor .PD 1 .PD 0 .TP .B procinfo - the usual processor stuff .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP .B offsets - the beginning number for each class on this processor in the global numbering .PD 1 .SH RETURNS the number of classes across all the processors .SH 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. .SH SYNOPSIS .nf int BSoffset(int length, int *array, int **offsets, BSprocinfo *procinfo) .fi .SH LOCATION BlockSolve95/src/BSoffset.c