COSHAPE — Determine the coshape of a coarray ¶RESULT = COSHAPE(COARRAY [, KIND])
Returns the shape of the cobounds of a coarray.
Inquiry function
| COARRAY | Shall be an coarray, of any type. |
| KIND | (Optional) A scalar INTEGER constant
expression indicating the kind parameter of the result. |
program test_cosh real(8) :: x[*] integer, allocatable :: csh (:) csh = coshape(x, kind = kind(csh)) end program test_cosh
Fortran 2018