Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Common block & Allocatable array?

Intel_C_Intel
Employee
243 Views
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

common/cBoundary/point
integer*4,allocatable :: point(:)
0 Kudos
1 Reply
larsm
Beginner
243 Views
No, allocatables are not allowed in common blocks. Try putting it in a module instead.

LarsM
0 Kudos
Reply