Manual Reference Pages  - image_index (3fortran)

NAME

IMAGE_INDEX(3) - [COLLECTIVE] Cosubscript to image index conversion

SYNOPSIS

result = image_index(coarray, sub)

CHARACTERISTICS

DESCRIPTION

IMAGE_INDEX(3) returns the image index belonging to a cosubscript.

OPTIONS

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

RESULT

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

EXAMPLES

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

SEE ALSO

THIS_IMAGE(3), NUM_IMAGES(3)

Fortran intrinsic descriptions


Nemo Release 3.1 image_index (3fortran) February 19, 2025
Generated by manServer 1.08 from f4178352-bcb7-47a8-ac50-d77e21b64d53 using man macros.