Re: passing variables.... crazy error?
- From: "Arjen Markus" <arjen.markus@xxxxxxxxxx>
- Date: 18 Jan 2007 00:20:08 -0800
Jim schreef:
"Dave" <davemccloskey@xxxxxxxxx> wrote in message
news:1169065316.977413.165600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Unfortunately, I will be working on legacy code, so I am learning F77.Perhaps you are expected to use F77, but those errors are errors in any
Thomas Koenig wrote:
Dave <davemccloskey@xxxxxxxxx> wrote:
X + Y = 154136.
Why?
Run the program though ftnchek after adding a program name,
and it will result in
$ ftnchek foo.f
FTNCHEK Version 3.3 November 2004
File foo.f:
12 END
^
Warning near line 12 col 7 file foo.f: MYSUM not set when RETURN
encountered
Warning in module MYSUM in file foo.f: Variables declared but never
referenced:
MYSUM declared at line 9 file foo.f
Warning in module MYSUM in file foo.f: Variables set but never used:
Z set at line 11 file foo.f
0 syntax errors detected in file foo.f
3 warnings issued in file foo.f
Warning: Subprogram MYSUM invoked inconsistently
Defined in module MYSUM line 9 file foo.f as type real
Invoked in module MAIN line 5 file foo.f as type intg
But really, Fortran 77 is only for legacy code. Use Fortran 95
instead.
version of Fortran.
Jim
Also, almost all FORTRAN 77 programs are accepted by Fortran 90/95
compilers as well.
(The main caveat is that not all extensions to the FORTRAN 77 standard
are accepted)
There is very little reason, IMO, to stick to FORTRAN 77, even if this
is a legacy system.
Regards,
Arjen
.
- Follow-Ups:
- Re: passing variables.... crazy error?
- From: Richard Edgar
- Re: passing variables.... crazy error?
- References:
- passing variables.... crazy error?
- From: Dave
- Re: passing variables.... crazy error?
- From: Thomas Koenig
- Re: passing variables.... crazy error?
- From: Dave
- Re: passing variables.... crazy error?
- From: Jim
- passing variables.... crazy error?
- Prev by Date: Re: Problem reading a binary file in fortran
- Next by Date: Array/Vector Cross product
- Previous by thread: Re: passing variables.... crazy error?
- Next by thread: Re: passing variables.... crazy error?
- Index(es):
Relevant Pages
|
|