8.2.5. _gfortran_caf_register
8.2.5 _gfortran_caf_register — Registering coarrays
- Description:
- Allocates memory for a coarray and creates a token to identify the coarray. The function is called for both coarrays with
SAVE
attribute and using an explicitALLOCATE
statement. If an error occurs and STAT is aNULL
pointer, the function shall abort with printing an error message and starting the error termination. If no error occurs and STAT is present, it shall be set to zero. Otherwise, it shall be set to a positive value and, if not-NULL
, ERRMSG shall be set to a string describing the failure. The function shall return a pointer to the requested memory for the local image as a call tomalloc
would do.For
CAF_REGTYPE_COARRAY_STATIC
andCAF_REGTYPE_COARRAY_ALLOC
, the passed size is the byte size requested