[UP]


Manual Reference Pages  - image_index (3)

NAME

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

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

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:

   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

STANDARD

[[Fortran 2008]] and later

CLASS

Inquiry function.

SEE ALSO

[[this_image]], [[num_images]]


image_index (3) March 18, 2019
Generated by manServer 1.08 from 5ba0fbc1-5a56-48f7-a43c-1cb4fc84c332 using man macros.