_gfortran_caf_num_images— Querying the maximal number of images ¶
This function returns the number of images in the current team, if distance is 0 or the number of images in the parent team at the specified distance. If failed is -1, the function returns the number of all images at the specified distance; if it is 0, the function returns the number of nonfailed images, and if it is 1, it returns the number of failed images.
int _gfortran_caf_num_images(int distance, int failed)
|distance||the distance from this image to the ancestor. Shall be positive.|
|failed||shall be -1, 0, or 1|
This function follows TS18508. If the num_image intrinsic has no arguments,
then the compiler passes
failed=-1 to the function.