mjodoin
Civil/Environmental
- Jun 2, 2004
- 2
I am using Compaq Visual Fortran.
I need to pass an allocatable array into a subroutine. The trick is that I can not simply add it to the argument list because the subroutine is called from an IMSL routine which permits only 3 specific variables in the argument list. I don't think I can use a COMMON statement with allocatable arrays.
The only solution I have come up with is to 'over-define' the array rather than making it allocatable but this isn't very appealing. Any other ideas?
I need to pass an allocatable array into a subroutine. The trick is that I can not simply add it to the argument list because the subroutine is called from an IMSL routine which permits only 3 specific variables in the argument list. I don't think I can use a COMMON statement with allocatable arrays.
The only solution I have come up with is to 'over-define' the array rather than making it allocatable but this isn't very appealing. Any other ideas?