Next:
Local Routines Written Up: HPF Local Routine Previous: LOCAL_TO_GLOBAL(ARRAYL_INDEX, G_INDEX)


GLOBAL_TO_LOCAL(ARRAY, G_INDEX, L_INDEX, LOCAL)

Optional arguments. L_INDEX, LOCAL
Description. Converts a set of global coordinates within a global HPF actual argument array to an equivalent set of local coordinates within the associated local dummy 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.

G_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 global HPF array actual argument associated with the local dummy array ARRAY.

L_INDEX (optional) 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 local dummy array of the element identified within the global actual argument array by G_INDEX. However, the values in L_INDEX are undefined if the value returned (or that would be returned) in LOCAL is false.

LOCAL (optional) must be scalar and of type LOGICAL. It is an INTENT(OUT) argument. It is set to .TRUE. if the local array contains a copy of the global array element and to .FALSE. otherwise.

paula@erc.msstate.edu
Thu Jul 21 17:05:43 CDT 1994