next up previous contents
Next: GLOBAL_TO_LOCAL(ARRAYG_INDEX, L_INDEX, LOCAL, Up: HPF Local Routine Library Previous: LOCAL_TO_GLOBAL(ARRAYL_INDEX, G_INDEX)

LOCAL_TO_GLOBAL(ARRAY, L_INDEX, G_INDEX)

Description. Converts a set of local coordinates within a local dummy array to an equivalent set of global coordinates within the associated global HPF actual argument array.

Class. Subroutine.

Arguments.

ARRAY may be of any type; it must be a dummy array that is associated with a global HPF array actual argument. It is an INTENT(IN) argument.

L_INDEX must be a rank-1 integer array whose size is equal to the rank of ARRAY. It is an INTENT(IN) argument. It contains the coordinates of an element within the local dummy array ARRAY. The value of the ith element must be in the range 1 to ei, where ei is the extent of the ith dimension ofARRAY.

G_INDEX must be a rank-1 integer array whose size is equal to the rank of ARRAY. It is an INTENT(OUT) argument. It receives the coordinates within the global HPF array actual argument of the element identified within the local array by L_INDEX. The value of the ith element will be in the range 1 to ei, where ei is the extent of the ith dimension of the global HPF actual argument array associated with ARRAY.