> Date: Thu, 17 May 2001 09:00:21 +0100
> Reply-to: [log in to unmask]
> From: John Bray <[log in to unmask]>
> Subject: Dependancies in declarations
> To: [log in to unmask]
> Is the following subroutine standard-conforming, with its declaration of a
> after it has been used to dimension b?
>
> SUBROUTINE fred(a,b)
> IMPLICIT NONE
> REAL :: b(a)
> INTEGER :: a
> PRINT *,b
> END SUBROUTINE fred
Try REAL :: b(:)
> John
> --
> John Bray, High Performance Computing Analyst
> Met Office London Road Bracknell Berkshire RG12 2SZ United Kingdom
> Tel: +44 (0)1344 854035 Fax: +44 (0)1344 854026
> E-mail: [log in to unmask] http://www.metoffice.com
>
|