co_min

Date:

10-18-2019

NAME

CO_MIN - Determine the minimum value of corresponding elements on all images of the current team in a Fortran application

SYNOPSIS

CO_MIN (A[,RESULT_IMAGE,STAT,ERRMSG])

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

CO_MIN is an intrinsic collective subroutine that computes the minimum value of corresponding elements on all images of the current team in a Fortran application.

Support for non-contiguous A arrays is deferred.

This subroutine accepts the following options:

A shall be of type integer, real, or character. It shall have the same shape, type, and type parameter values, in corresponding references. It shall not be a coindexed object. It is an INTENT (INOUT) argument. If it is scalar, the computed value is equal to the minimum value of A in all corresponding references. If it is an array each element of the computed value is equal to the minimum value of all corresponding elements of A in all corresponding references. The computed value is assigned to A if no error condition occurs, and either RESULT_IMAGE is absent, or the executing image is the one identified by RESULT_IMAGE. Otherwise, A becomes undefined.

RESULT_IMAGE shall be an integer scalar. It is an INTENT (IN) argument. Its presence, and value if present, shall be the same in all corresponding references. If it is present, its value shall be that of an image index in the current team.

STAT shall be a noncoindexed integer scalar with a decimal exponent range of at least four. It is an INTENT (OUT) argument. If the STAT argument is present in a reference to a collective subroutine on one image, it shall be present on all the corresponding references. If the STAT argument is present in a reference to a collective subroutine and its execution is successful, it is assigned the value zero. If the STAT argument is present in a reference to a collective subroutine and an error condition occurs, it is assigned a positive value and the A argument becomes undefined. If the STAT argument is not present in a reference to a collective subroutine and an error condition occurs, error termination is initiated.

ERRMSG shall be a noncoindexed default character scalar. It is an INTENT (INOUT) argument. If the ERRMSG argument is present in a reference to a collective subroutine and an error condition occurs, it is assigned an explanatory message, truncated or padded with blanks if required. If no error condition occurs, the definition status and value of ERRMSG are unchanged.

SEE ALSO

co_broadcast(3), co_max(3), co_sum(3)