Intel® Fortran Compiler 17.0 Developer Guide and Reference
Inquiry Intrinsic Function (Generic): Converts cosubscripts to an image index.
result = IMAGE_INDEX (coarray,sub)
coarray |
(Input) Must be a coarray; it can be of any type. |
sub |
(Input) Must be a rank-one integer array of size equal to the corank of coarray. |
The result is default integer scalar. The result is the index of the corresponding image if the value of sub is a valid sequence of cosubscripts for coarray. Otherwise, the result is zero.
If coarray D is declared as D [0:*] and coarray C is declared as C(5,10) [10, 0:9, 0:*], IMAGE_INDEX (D, [0]) has the value 1 and IMAGE_INDEX (C, [3, 1, 2]) has the value 213 (on any image).