- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to know whether the FORTRAN 6.6A patch allows to have an allocatable array in a user defined type .
So far the only way of allocate the dimension of an array in a type at run time was to use Pointer, Dimension, but it gives some problems when communicating with C++
Thanks Luca
I would like to know whether the FORTRAN 6.6A patch allows to have an allocatable array in a user defined type .
So far the only way of allocate the dimension of an array in a type at run time was to use Pointer, Dimension, but it gives some problems when communicating with C++
Thanks Luca
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it does, but you'll have the same problem in that the descriptor used is the same as for POINTER.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We use Cray (Integer) Pointers for just that purpose, which are basically the same as C pointers [and declare structure members as INTEGER(PTR_KIND) -- there's now intrinsic IIRC SELECTED_PTR_KIND()]. The code for accessing is not so elegant but it better fits to C++ than tweaking array descriptors on C++ side.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
INT_PTR_KIND is the intrinsic.
Steve
Steve

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