Next:
GLOBAL_UBOUND(ARRAYDIM) Up: HPF Local Routine Previous: GLOBAL_SHAPE(SOURCE)

GLOBAL_SIZE(ARRAY, DIM)

Optional argument. DIM
Description. Returns the extent along a specified dimension of the global HPF actual array argument associated with a dummy array argument of an HPF_LOCAL procedure.
Class. Inquiry function.
Argument.

ARRAY may be of any type. It must not be a scalar. It must be a dummy argument of an HPF_LOCAL procedure which is argument associated with a global HPF actual argument. DIM (optional) must be scalar and of type integer with a value in the range , where is the rank of ARRAY.
Result Type, Type Parameter and Shape. Default integer scalar.
Result Value. The result has a value equal to the extent of dimension DIM of the actual argument associated with the actual argument associated with ARRAY or, if DIM is absent, the total number of elements in the actual argument associated with the actual argument associated with ARRAY.
Examples. Assuming A is declared by the statement

INTEGER A(3:10, 10)

and is argument associated with B, the value of GLOBAL_SIZE(B, 1) is 8. If B is argument associated with the section, A(5:10, 2:4), the value of GLOBAL_SIZE(B) is 18.


paula@erc.msstate.edu
Thu Dec 8 16:17:11 CST 1994