Re: passing variables.... crazy error?



Arjen Markus wrote:

Also, almost all FORTRAN 77 programs are accepted by Fortran 90/95
compilers as well.

I'd say that in general, you can make an even stronger statement than
that: these days, the 'f77' command is usually just aliased to 'f90'
(substitute compiler names as appropriate). There might be some extra
options added, to cope with assumptions F77 programs often make but
which are in no standard (e.g. the Sun compiler does this).

Of course, this isn't always true, and in particular, might not be true
on the OP's particular system. I would agree with the general sentiment
that unless there is no f90 compiler available, any F90 features should
be used when appropriate (IMPLICIT NONE being the F90 feature which
would have caught this particular problem, as others have pointed out).
I certainly do this sort of thing when modifying older codes - I'll
stick to the source form, but sprinkle in F90 features as appropriate.

Richard
.



Relevant Pages

  • Re: F90 code calling F77 library?
    ... I use a Sun Ultra 10 machine, and I have an F77 Numerical Recipes ... When my Fortran 77 code, say abc.f, calls a subroutine in the above ... the above command with an F90 compiler as ... compiler that calls F77 subroutines in a library? ...
    (comp.lang.fortran)
  • Re: Compiler Error
    ... That's actually a very good compiler. ... On the other hand, it has a lot of F90 features: ... If his program is too big for it, though, he should definitely switch ... Ken Plotkin ...
    (comp.lang.fortran)
  • Re: How old is the average Fortran programmer?
    ... but where will you find a seasoned F2003 compiler these days? ... F2003 means Fortran standard of year 2003, ... Is this F2003 language just a "virtual" language living only on paper? ... F90 features. ...
    (comp.lang.fortran)
  • Re: gfortran iso c bindings - capabilities
    ... free to pick any companion processor it chooses. ... invoked with different command line options. ... if %errorlevel% NEQ 0 goto errorexit ... The compiler is supposed to incorporate the information about the ...
    (comp.lang.fortran)
  • RE: Visual studio 2003 .NET versus its own Command Prompt
    ... > package in the lab. ... > command line compiler which cames with it. ... library, which is a .lib file, for it to know where in the DLL the functions ...
    (microsoft.public.vc.language)