インテル® Fortran コンパイラー 19.1 デベロッパー・ガイドおよびリファレンス

IMAGE_STATUS

Elemental Intrinsic Function (Generic): Returns the execution status value of the specified image.

result = IMAGE_STATUS (image)

image

(Input) Must be a positive integer with a value equal to or less than the number of executing images on the current (initial) team.

Results

The result type is default integer. If image has initiated normal termination, the result is the value STAT_STOPPED_IMAGE defined in the intrinsic module ISO_FORTRAN_ENV. If image has failed, the result is the value STAT_FAILED_IMAGE defined in the intrinsic module ISO_FORTRAN_ENV. Otherwise, the result value is zero.

Note

IMAGE_STATUS argument team has not yet been implemented. It will be added in a future release.

Example

If image 5 on the current team has initiated normal termination, and image 12 on the current team is known to have failed, then IMAGE_STATUS (5) returns the value STAT_STOPPED_IMAGE and IMAGE_STATUS (12) returns the value STAT_FAILED_IMAGE. If image 3 on the current team has neither initiated normal termination nor failed, IMAGE_STATUS (3) returns the value zero.

See Also