Is the following legal fortran 90?
module A
contains
subroutine sub( array )
real :: array(10)
end subroutine
end module
program main
use A
real :: a, b(10), c(10,10)
call sub(a)
call sub(b)
call sub(c)
end program
In other words, if you have an explicit interface, can you pass
non-conforming arrays?
Drew McCormack
|