> >>> 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 a=
> bout a compiler that is still printing messages that are this obsolete.
OK. The compiler is much older than 10 years. :-(
I still use VMS. VSI, who is now developing VMS, has promised to get
the compilers back up to speed. (VAX FORTRAN used to be the default
industry standard.)
For what it's worth, the compiler compiles both versions and they
produce the same output. I presume the "cmplx" is not needed.
|