co_bcast

Date:

02-10-2023

NAME

CO_BCAST, CO_BROADCAST - Broadcast a coarray to all images of the current team in a Coarray Fortran application

SYNOPSIS

CO_BCAST (SOURCE, SOURCE_IMAGE [, STAT, ERRMSG])
CO_BROADCAST (SOURCE, SOURCE_IMAGE [, STAT, ERRMSG])

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

CO_BCAST is an intrinsic collective subroutine that assigns the coarray specified by SOURCE on the image number specified by SOURCE_IMAGE to all images of the current team in a Coarray Fortran application.

Support for non-contiguous SOURCE arrays is deferred.

The CO_BCAST subroutine accepts the following options:

SOURCE

Coarray on the image number specified by SOURCE_IMAGE which becomes defined on all images. It is an INTENT(INOUT) argument.

SOURCE_IMAGE

Integer specifying an image number in the range 1 … NUM_IMAGES(). It is an INTENT(IN) argument.

STAT

If STAT is present and an error condition occurs, it is assigned a positive value. If it is present and no error condition occurs, it is assigned the value zero. If it is not present and an error condition occurs, error termination is initiated. Must be an integer scalar. It is an INTENT(OUT) argument.

ERRMSG

If ERRMSG is present and an error condition occurs, it is assigned an explanatory message. If it is present an no error condition occurs, it is left unchanged. Must be a character scalar. It is an INTENT(INOUT) argument.

SEE ALSO

co_sum(3), co_max(3)