Guylaine,
-----Original Message-----
>From: Guylaine Prat [mailto:[log in to unmask]]
>
>So by browsing the archive of the mailing list I found the two kind of
writing, such as:
>
> REAL(DP), ALLOCATABLE, DIMENSION(:, :) :: xxxx
>or
> REAL(DP), DIMENSION(:, :) , allocatable :: xxxx
>
>So it seems not clear to me. Somebody has a clue ? or a recommendation ?
Both are equivalent!
There are many other attibutes that you can have as well as 'Dimension' and
'Attribute'.
The Fortran Standard says that the order that these are specified is
immaterial.
As an aside, I do not like the use of DIMENSION at all, (unless you have
several arrays that are to be the same shape and so it can save some typing)
The style:
real,allocatable :: a(:,:), b(:), c(:)
is also perfectly valid.
Yours,
Daniel.
--------------------------------------------------------------
Dr. Dan Kidger, Quadrics Ltd. [log in to unmask]
One Bridewell St., Bristol, BS1 2AA, UK 0117 915 5505
----------------------- www.quadrics.com --------------------
|