Either
"SUBROUTINE MySubroutine(isize,array)
IMPLICIT NONE
INTEGER, INTENT(IN) :: isize
REAL, DIMENSION(isize), INTENT(INOUT) :: array"
or
"REAL, DIMENSION(:), INTENT(INOUT) :: array"
do not work.
If I specify the size of array, it gives errors due to memory restriction.
One possible solution...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.