The scheme for translating array sections when scalar subscripts
appear in some distributed dimension is illustrated in Figure
4.17.
We add two new cases for the definition of the macro
PROCESS_SUBSCRIPTS.
If
subs is the integer expression , and
the th dimension of is distributed, then
where and are the names of new temporaries,
, and
.
Otherwise, if
subs is a distributed index
or a shifted index , then
where the macro OFFSET_DIM is defined in section
4.5.6 and
dim is the dimension associated
with .
Figure 4.17:
Translation of array section allowing scalar subscripts in
distributed dimensions.