next up previous contents
Next: GLOBAL_SIZE(ARRAY DIM) Up: HPF Local Routine Library Previous: GLOBAL_SHAPE(SOURCE)

GLOBAL_SHAPE(SOURCE)

Description. Returns the shape of the global HPF actual argument associated with an array or scalar dummy argument of an HPF_LOCAL procedure.

Class. Inquiry function.

Argument.

SOURCE may be of any type. It may be array valued or a scalar. It must be a dummy argument of an HPF_LOCAL procedure which is argument associated with a global HPF actual argument.

Result Type, Type Parameter and Shape. The result is a default integer array of rank one whose size is equal to the rank of SOURCE.

Result Value. The value of the result is the shape of the global actual argument associated with the actual argument associated with SOURCE.

Examples. Assuming A is declared by the statement

INTEGER A(3:100, 200)

and is argument associated with B, the value of GLOBAL_SHAPE(B) is [98 200]. If B is argument associated with the section, A(5:10, 10), the value of GLOBAL_SHAPE(B) is [6].