I've just been told (by a new compiler I'm testing) that a
certain construct I use isn't standard conforming. After
taking a look at the F90 Handbook I'm reluctantly forced to
agree. For example,
real, dimension(2,2), parameter :: &
a = reshape( source=(/ 1.0, 2.0, 3.0, 4.0 /), shape=(/ 2, 2 /) )
If I understand correctly, in such an initialization expression
source is restricted to type integer (or character). Is this
correct? If so, how can one define an array (rank>1) of parameters?
Thanks!
---------------------------------------------------------------------------
Neil N. Carlson [log in to unmask]
Department of Mathematics 765-494-1920 (Fax: 4-0548)
Purdue University
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|