I have a large array which need to be allocatable due to its size.
(Allocatable memory can exeed 2GB in my machine.)
And this array need to be input and output of some subroutine.
If I declare in the subroutine
"REAL, DIMENSION), INTENT(INOUT), ALLOCATABLE :: array"
then error occurs.
(This array is already allocated in the main program.)
Is there any way around?
(Allocatable memory can exeed 2GB in my machine.)
And this array need to be input and output of some subroutine.
If I declare in the subroutine
"REAL, DIMENSION), INTENT(INOUT), ALLOCATABLE :: array"
then error occurs.
(This array is already allocated in the main program.)
Is there any way around?