NUM_IMAGES intrinsic function

Standard: F77 F90 F95 F2003 F2008 F2018 Example program



TEAM : scalar of type TEAM_TYPE from the intrinsic module ISO_FORTRAN_ENV, whose value must identify the current team or an ancestor team;
TEAM_NUMBER : scalar Integer, which must be equal to −1 for the initial team, or equal to the team number of a sibling team;

Result : scalar Integer with default kind.


If TEAM and TEAM_NUMBER do not appear, the “specified team” is the current team.

The value of the result is the number of images (copies of the program in SPMD coarray execution) in the specified team.


FORM TEAM statement, GET_TEAM intrinsic function, THIS_IMAGE intrinsic function