- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I have an allocatable array in a common block?
I get the message 'This common scalar array is invalid in this context'
Have I coded it wrong or can I not do it?
David
I get the message 'This common scalar array is invalid in this context'
Have I coded it wrong or can I not do it?
David
common/cBoundary/point integer*4,allocatable :: point(:)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, allocatables are not allowed in common blocks. Try putting it in a module instead.
LarsM
LarsM
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