Elsevier Science Home
Computer Physics Communications Program Library
Full text online from Science Direct
Programs in Physics & Physical Chemistry
CPC Home

[Licence| Download | New Version Template] aadi_v1_0.gz(3 Kbytes)
Manuscript Title: FIXSRC: a Fortran preprocessor.
Authors: J.W. Brown, S.B. Hooker
Program title: FIXSRC
Catalogue identifier: AADI_v1_0
Distribution format: gz
Journal reference: Comput. Phys. Commun. 38(1985)435
Programming language: Fortran.
Computer: VAX-11/780.
Operating system: VMS.
RAM: 8K words
Word size: 32
Peripherals: disc.
Keywords: General purpose, Utility, Fortran, Preprocessor.
Classification: 4.14.

Nature of problem:
Programming style and documentation is greatly enhanced by some rather simple extensions to Fortran-77. In particular, the ability to comment in-line and use upper- and lower-case improves readability and understanding. Unfortunately, these enhancements limit portability since Fortran compilers vary widely in the syntax and character sets they support . A program is presented that converts an extended Fortran card deck to a format acceptable to standard conforming Fortran-77 compilers.

Solution method:
Cards are read one at a time from an input file, processed to remove FORTRAN extensions, and written to an output file.

Restrictions:
The card deck format is assumed to consist of 80 character records with columns 1-72 containing source code and columns 73-80 a sequence field.

Running time:
Compilation: 20 s, execution: 2500 card images per minute.