Subroutine Arguments

From: Talyrond (supertramp1963_at_yahoo.co.uk)
Date: 03/30/05


Date: 30 Mar 2005 00:33:52 -0800

Hi, I am trying to compile some Legacy Fortran Code I have been given,
I believe it is Fortran 77. I am new to Fortran and have searched all
I can to resolve this issue, but with no luck!
I am getting compiler errors say I am passing the incorrect number of
arguments

Declaration example:

SUBROUTINE TEST (PARA1, PARA2, PARA3, PARA4, *)

I believe the problem is related to the last argument, as you can see
it contains a '*', I can only assume that this is some sort of
optional parameter, but I cant get the code to compile. I am using
FTN95 Fortran 95 for Windows from SilverFrost.
The number of calls to the routine do vary and sometimes, use '*9999'
as a passing value for the last argument, strange!

Any help would be appreciated



Relevant Pages

  • Re: reading more data than the record size (RECL)
    ... end snip ... This overhead is there to allow Fortran ... compile the original source code with g95, ... Think of it as a variant on the ASCII vrs ...
    (comp.lang.fortran)
  • Re: Fortran programmerss favorite report-writing tools
    ... preprocessing to compile so it's easy to add to existing code. ... same input method as when fortran was first invented. ... and the compiler is then translating it into machine code. ... a good candidate for a formulat translator seems to be texmacs. ...
    (comp.lang.fortran)
  • Re: what is wrong with this code?can someone walk me through this?
    ... i dont know anything abt fortran or coding..this is my project at ... You CAN get your program to compile if you ... What are reasonable ranges for the input variables? ...
    (comp.lang.fortran)
  • Re: Toward a Forth thats easier to learn
    ... Barriers cease to be barriers once you're past them. ... For variables, what emerged as a style in the early days was a compromise: LSE users put in more variables than a Forth purist, but fewer than a Fortran programmer. ... Compile a line and either save it or execute it and throw it ...
    (comp.lang.forth)
  • re: Upgrading an OLD (Fortran Powerstation 4.0) compiler
    ... convert and compile as f90 and fix any errors ... compiler options for windows - most vendors have 30 day demo versions. ... ivf - Intel Visual fortran, ... SUBROUTINE FortranCall ...
    (comp.lang.fortran)