CLOG_treesetup

locally determine parent and children in binary tree

Synopsis

#include <stdio.h>
#include "mpe.h"
void CLOG_treesetup( self, nprocs, parent, lchild, rchild)
int self, nprocs, *parent, *lchild, *rchild;
Input parameters

self calling process's id
np total number of processes in tree

Output parameters

parent parent in binary tree (or -1 if root)
lchild left child in binary tree (or -1 if none)
rchild right child in binary tree (or -1 if none)

Location:clog_merge.c