On Nov 10, 2015, at 11:42 AM, Phillip Helbig <[log in to unmask]> wrote:
>> INTEGER, PARAMETER :: a = [1, 2]
>> DIMENSION a(2)
>
> Whatever the answer to your question, is there any reason NOT to write
>
> INTEGER, DIMENSION(2), PARAMETER :: a = [1, 2]
Sure. It’s more characters than
integer,parameter :: a(2) = [1,2]
Separate DIMENSION statements typically appear only in very old codes.
Cheers,
Bill
Bill Long [log in to unmask]
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101
|