Download HEP PARALLEL FORTRAN USER`S MANUAL

Transcript
of dimensions and the size of each.
The data type of an array is identified
the same as for a simple variable.
The declaration of an array type may occur separately from the declaration
of its dimensions.
2.2.2.1
Array Storage Allocation
The multi-dimensional arrays declared by the programmer are assigned to the
one-dimensional computer memory in such a way that the left-most subscript
varies most rapidly and the right-most subscript least rapidly.
EXAMPLE:
Allocation of array K of three dimensions of two elements each.
2.2.2.2
Memorl Seguence
Arral Element
1
K(l,l,l)
2
K(2,1,1)
3
K(1,2,1)
4
K(2,2,1)
5
K(l,1,2)
6
K(2,1,2)
7
K(l,2,2)
8
K(2,2,2)
Array" References
Most FORTRAN statements operate on only one element of an array at a
time.
A member of an array is referenced in the form:
where "array" is the name of the array, and the S1 are suscript expressions.
A subscript expression may be any expression (see section 4.1).
sion is converted to type integer after evaluation.
-9-
The expres-