- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've just finished converting a bunch of array section references to whole array references, using function calls where necessary, thereby eliminating a bunch of stack overflow problems and gaining a substantial increase in speed. Unfortunately, though, the readability of the code has suffered a bit. For example, the construct
gstf(:,:) = 0.0d0
is substantially more informative than
gstf = 0.0d0
which looks like a scalar assignment. At some point in the evolution of IFORT, though, I suspect the compiler will recognize the first expression as a whole array, and the two statements will become equivalent.
Currently,the documentation of array section handling is limited to the suggestion, "Use whole arrays whenever possible,"and that suggestion indeed appears to be good advice.Are there any plans to flesh out that documentation such that one can determinewhether or nota particular operation will generate a stack temporary?
Bruce
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In general, any time you have all colons in the subscript, you can probably remove the subscript.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page