[J3] Limitations of SELECT RANK?

Clune, Thomas L. (GSFC-6101) thomas.l.clune at nasa.gov
Mon Oct 19 12:24:09 EDT 2020


I recall that when J3 was discussing one of the SELECT RANK papers for F2018,  I had asked whether something like this was possible:

Consider the construct:

SELECT RANK (arr)
RANK (1)
    CALL SUB(arr))
RANK (2)
    CALL SUB(arr))
RANK (3)
    CALL SUB(arr))
RANK DEFAULT
END SELECT RANK

where SUB() is a generic interface that is  suitably overloaded for the relevant ranks.

Could the feature be extended to allow the equivalent:

SELECT RANK (arr)
RANK(1:3)
    CALL SUB(arr)
RANK DEFAULT
END SELECT RANK

My memory is that there was a resounding “NO” in the room (presumably mostly by the vendors).       I would very much appreciate it if someone knowledgable about why that is not workable could respond on the thread below.

https://github.com/j3-fortran/fortran_proposals/issues/185

Or if preferred, they could respond to me directly and I can summarize in the GitHub discussion.  (With or without attribution depending on preference.)

Thanks,

- Tom







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20201019/5f3485bb/attachment.htm>


More information about the J3 mailing list