IMAGE_INDEX(3f)

DESCRIPTION
Returns the image index belonging to a cosubscript.

STANDARD
Fortran 2008 and later

CLASS
Inquiry function.

SYNTAX
RESULT = IMAGE_INDEX(COARRAY, SUB)

Arguments: None.

COARRAY Coarray of any type. SUB default integer rank-1 array of a size equal to the corank of COARRAY.

RETURN VALUE
Scalar default integer with the value of the image index which corresponds to the cosubscripts. For invalid cosubscripts the result is zero.

EXAMPLE
          INTEGER :: array[2,-1:4,8,*]
          ! Writes 28 (or 0 if there are fewer than 28 images)
          WRITE (*,*) IMAGE_INDEX (array, [2,0,3,1])

SEE ALSO
THIS_IMAGE, NUM_IMAGES

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).