- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I vaguely remember reading not too long ago that there was a plan for all fortran intrinsics to accept a KIND argument - now I can't remember if this was for a future version of the standard or for F2018.
Today (in Intel ifort classic 2021.5.0) the following syntax
RANK(SOME_ARRAY, KIND = SOME_INTEGER_KIND)
is not valid. Is this an oversight? Am I simply ahead of the curve? Or (not entirely impossible) am I making all this thing up?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're way ahead of the curve, Fortran is not scheduled to support a rank for arrays > 15 anytime soon, and the result of RANK intrinsic shall remain that of default integer. In the meantime, you may even find the following in your own codes!
int( rank(a), kind=.. )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok, got it. I do like having KIND arguments for intrinsics, but in the meantime @FortranFan 's workaround will do of course. Thanks!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page