Next: , Previous: , Up: Function ABI Documentation   [Contents][Index]


8.2.34 _gfortran_caf_co_min — Collective minimum reduction

Description:

Calculates for each array element of the variable a the minimum value for that element in the current team; if result_image has the value 0, the result shall be stored on all images, otherwise, only on the specified image. This function operates on numeric values and character strings.

Syntax:

void _gfortran_caf_co_min (gfc_descriptor_t *a, int result_image, int *stat, char *errmsg, int a_len, size_t errmsg_len)

Arguments:
aintent(inout) An array descriptor for the data to be processed. On the destination image(s) the result overwrites the old content.
result_imageintent(in) The ID of the image to which the reduced value should be copied to; if zero, it has to be copied to all images.
statintent(out) Stores the status STAT= and may be NULL.
errmsgintent(out) When an error occurs, this will be set to an error message; may be NULL.
a_lenintent(in) the string length of argument a
errmsg_lenintent(in) the buffer size of errmsg
NOTES

If result_image is nonzero, the data in the array descriptor a on all images except of the specified one become undefined; hence, the library may make use of this.