next up previous contents index
Next: Variables Up: Arrays Previous: Sequential vs. Parallel Variables

Floodable Arrays

     

A floodable array is a parallel array in which some dimensions are absent. An absent dimension has unspecified lower and upper bounds, which logically extend from negative infinity to positive infinity. Moreover, the values of floodable arrays are replicated across each absent dimension. Thus floodable arrays provide a wway to create lower dimensional parallel arrays that are conformable with higher dimensional parallel arrays.

As with other parallel variables, floodable arrays are declared using regions, in this case floodable regions. In the following code fragment F is a floodable array with an absent second dimension, and so F is conformable with both A1 and A2.

    region R1 = [1..n, 1..n];
           R2 = [1..n, p..q];
           FR = [1..n, *];

    var A1 : [R1] real;
        A2 : [R2] real;
        F  : [FR] real;



Kay Nettle
Fri Feb 21 21:14:29 CST 1997