Anuchit Aromsawa said:
> How could I know the size of automatic arrays provided by f90?
Use the SIZE intrinsic function.
SIZE(array,N) is the size of the Nth dimension.
SIZE(array) is the total number of elements in the array.
E.g. in
REAL A(N,M)
SIZE(A,1) is N
SIZE(A,2) is M
SIZE(A) is N*M
Cheers,
--
...........................Malcolm Cohen, NAG Ltd., Oxford, U.K.
([log in to unmask])
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
|