On Aug 18, 2016, at 12:47 PM, Phillip Helbig <[log in to unmask]> wrote:
>>> sorry, I meant
>>
>>> complex :: j=cmplx(0.0, -1.0), z=cmplx(0.0, -4.0)
>>
>> Can't the cmplx be dropped?
>
> Should it be dropped?
Why? The statement looks fine.
>
> %F90-W-WARNING, Fortran 95 specifies that an elemental intrinsic
> function here be of type integer or character and each argument must be
> an initialization expr of type integer or character (R730.4). [CMPLX]
That limitation was dropped over a decade ago. I’d be a bit concerned about a compiler that is still printing messages that are this obsolete.
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
|