STOPPED_IMAGES intrinsic function

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

STOPPED_IMAGES ( [ TEAM, KIND ] )

TEAM : scalar of type TEAM_TYPE from the intrinsic module ISO_FORTRAN_ENV, whose value must identify the current team or an ancestor team;
KIND : scalar Integer constant expression;

Result: Integer or Integer(Kind=KIND). The result is an array of rank one.

<Semantics>

Returns the image numbers of images, in the specified team, known by the invoking image to have stopped. The size of the result is the number of images known to have stopped. If STAT_STOPPED_IMAGE was returned for an operation with the specified team, the size will be non-zero.

If TEAM is absent, the specified team is the current team.

The KIND argument is completely unnecessary as default Integer is big enough to represent two billion images.

<Related>

FAILED_IMAGES intrinsic function, FORM TEAM statement, IMAGE_STATUS intrinsic function, STOP statement