- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK
"A pointee cannot appear in a COMMON"
Is this new? Or a new or more strict compiler?I'm trying to compile code that used to work...I'm on 6.6C...
- 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
The restriction seems reasonable -- COMMON isby definition static, while Cray pointees are by definition "movable".
The answer to your second question really depends on what is done with these variables. I've never foundthat Cray pointers are necessary in pure Fortran-90 code (no C or Windows API interaction); allocatables and/or pointers within modules have always worked for me. So, my first impulse is to suggest rewriting everything to standard, readable & portable module/allocatable, unless
a) it's really lot of code which you don't feel like touching or
b) it does some nasty type conversions between pointed memory and pointee variables (effectively EQUIVALENCE-ing apples and oranges)
Jugoslav
- 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
Jugoslav & Steve,
As I said, this code used to work a while ago (I guess under 6.0?), and is unchanged.It is for shared memory stuff.
The pointers are used thus:
p_dy_item = MAPVIEWOFFILE(...)
Which would make the 'a_shared_item' array the 'contents' of the memory file.
To be honest I'm not sure if I need the arrays in a common block (the code compiles fine if I comment that common block out), its just that's how I inherited the code...
Should I be using the FORTRAN 90/95 type of POINTER? (which to be honest, I don't grasp at all, even having read the documentation).
Will the association through the Cray pointer keep my data in the memory file static?
- 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

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