IMAGE_INDEX
— Function that converts a cosubscript to an image indexRESULT = IMAGE_INDEX(COARRAY, SUB)
COARRAY | Coarray of any type. |
SUB | default integer rank-1 array of a size equal to the corank of COARRAY. |
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])
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gfortran/IMAGE_005fINDEX.html