> Date: Thu, 05 Feb 2004 16:05:17 -0700
> From: James Giles <[log in to unmask]>
> robin wrote:
>
> > IMHO the simplest and most important of the conversions are:
> > 1. conversion to free form source input.
> > 2. wrapping the main program around the subroutines and functions,
> > (with the help of the CONTAINs statement).
> > This approach requires a minimum of effort, and is unlikely to
> > introduce new bugs (but note that any conversion to the modern
> > form is likely to find pre-existing bugs)
> > The above checks subroutine interfaces and may pick up some
> > typos in the original code.
>
> Your second part is likely to introduce errors (hard to find ones
> at that) due to host association. Since your old F77 code is likely
> not using IMPLICIT NONE,
_My_ old Fortran 77 codes all had IMPLICIT NONE.
I thought that everybody used that now, without my
having to repeat the obvious.
> any implicitly declared variables
> in your procedures are actually visible in the host.
Two of my compilers insist on IMPLICIT NONE.
I compile procedures separately first.
BTW, global variables can be useful for the occasional large array.
> --
> J. Giles
|