- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When a subroutine has a dummy array with the ALLOCATABLE attribute, an explicit interface is required.
If a subroutine has a dummy variable which is a user defined structure (TYPE(my_structure) for instance), and if one of this structure's component is an allocatable array, then no explicit interface is required.
Why is there a difference?
[BTW: these two features (allocatable dummy argument and allocatable structure component) are an extremely welcome addition to the Fortran language!!]
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An allocatable array argument is always deferred-shape which requires an explicit interface so that the descriptor can be passed. For a derived type with allocatable components, it could be a fixed-shape array which does not require an interface.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An allocatable array argument is always deferred-shape which requires an explicit interface so that the descriptor can be passed. For a derived type with allocatable components, it could be a fixed-shape array which does not require an interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An allocatable array argument is always deferred-shape which requires an explicit interface so that the descriptor can be passed. For a derived type with allocatable components, it could be a fixed-shape array which does not require an interface.

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