[UP]


Manual Reference Pages  - image_index (3)

NAME

image_index(3f) - [FORTRAN:INTRINSIC:COLLECTIVE] Cosubscript to image index conversion

SYNTAX

result = image_index(coarray, sub)

DESCRIPTION

Returns the image index belonging to a cosubscript.

ARGUMENTS

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

Sample program:

   program demo image_index
   implicit none
   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])
   end demo image_index

STANDARD

[[Fortran 2008]] and later

CLASS

Inquiry function.

SEE ALSO

this_image(3), num_images(3)


image_index (3) March 11, 2021
Generated by manServer 1.08 from 6d990a15-e9d4-4b6c-ba03-d843b48769c0 using man macros.