>
> The repeat factor which is available in DATA statements is not
> available in array constructors. Compiler error and looking at the
> F95 standard.
>
Paddy,
Right, but the implied do-construct form of the array constructor
surely helps?
real a(10)
data a/10*3.0/
becomes
real, parameter :: a(10) = (/ (3.0, i = 1, 10)/)
Regards,
Mike Metcalf
|