# Scatter Type

Next: Alltoall, Previous: Gather, Index: Index

The scatter[elements,root] type will send a number of elements (equal to elements) from process root to all other processes.

## Examples

var x:array[Int,3]::allocated[multiple[]];
var r:array[Int,12]::allocated[multiple[]];
var p;
par p from 0 to 3
{
x:(x::scatter[3,1]);
x:=r;
};
In this example, three elements of array r, on process 1, are scattered to each other process and placed in their copy of r.
Last Modified: August 2008