- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to increase the performance of one of my programs. This program has about 70 subroutines that share data usuallythrough the use ofCOMMON blocks. Many ofthe common blocksconsist of 3-dimensional arrays. I'd like to make these arrays dynamic as they currently are defined with the maximum size I could need. This wastes a lot of memory.
Can I use dynamic arrays in COMMON blocks? Any other ideas?
Thanks,
Aaron
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can put a POINTER array in COMMON, but not ALLOCATABLE. Let me suggest the use of module variables (which can be ALLOCATABLE) as an alternative to COMMON.

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