[ HPF Home | Versions | Compilers | Projects | Publications | Applications | Benchmarks | Events | Contact ]



Next:
GLOBAL_SIZE(ARRAYDIM) Up: HPF Local Routine Previous: GLOBAL_LBOUND(ARRAYDIM)

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,, plus 1filll -1;98 200,; plus 1filll -1:98 200,: plus 1filll -1.98 200,. plus 1filll -198 200, plus 1filll-1. If B is argument associated with the section, A(5:10, 10), the value of GLOBAL_SHAPE(B) is ,6,, plus 1filll -1;6,; plus 1filll -1:6,: plus 1filll -1.6,. plus 1filll -16, plus 1filll-1.



©2000-2006 Rice University [ Contact Us | HiPerSoft | Computer Science ]

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