Next: Translating field accesses
Up: Translating array sections
Previous: Scalar subscripts in sequential
Contents
Index
The scheme for translating array sections when scalar subscripts
appear in some distributed dimension is illustrated in Figure
A.29.
We add two new cases for the definition of the macro
PROCESS_SUBSCRIPTS. These new definitions apply only
if the
th dimension of
has the distributed attribute.
If, under these conditions,
is the integer
expression
, then
where
and
are the names of new temporaries,
, and
.
Otherwise, if
is a distributed index
or a shifted index
, then
where the macro OFFSET_DIM is defined in section
A.4.12 and
is the dimension associated
with
.
Figure A.30:
Translation of a multiarray-valued field access.
 |
Bryan Carpenter
2003-04-15