For reasons too complex to go into, I want my own version of FCORE4. I've tried:
!ftn95$free
program coretest
real*4 :: a(2)
iad = loc(a(1))
a(1) = 3.5
a(2) = 4.7
call test (iad,2)
end
subroutine test (iad, n)
intrinsic fcore4
call report1 (fkore4(iad), n)
call report1 (fcore4(iad), n)
end
subroutine report1 (a, n)
real*4 :: a(n)
write (*,*) 'a(1,2)', a(1),a(2)
end
real*4 function fkore4 (iad)
intrinsic fcore4
fkore4 = fcore4(iad)
end
In the calls to 'report1', FCORE4 returns access to the entire array, but my FKORE4 only succeeds in returning the first element of the array. Is what I want to do possible?
K[/code]