---
name: "CLOG_treesetup"
section: "4"
platform: "linux"
package: "mpi-doc"
version: "1.2.7-9.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/CLOG_treesetup"
---

# CLOG\_treesetup(4)

locally determine parent and children in binary tree

## NAME

CLOG\_treesetup -  locally determine parent and children in binary tree

## SYNOPSIS

```
void CLOG_treesetup( self, numprocs, myparent, mylchild, myrchild)
int self, numprocs, *myparent, *mylchild, *myrchild;
```

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
