next up previous contents
Next: FORTRAN Portability Guidelines Up: pawfopi Previous: Porting

The f2f FORTRAN converter

 

To overcome the deficiencies of FORTRAN compilers:

a GSI-made FORTRAN code converter f2f is available, which simulates to some extent the missing preprocessor. The general usage on VMS, MVS, AIX and ULTRIX is:
f2f
    [-?]          # reminder of command syntax
    -D<newflags>
    [-i<IdentifierDictionaries>]  # translates variable names
    [-j<IncludeSpecDictionaries>] # translates include file names
    [-r]                          # reverse use of dictionaries
    [-o<outfile>]                 # force outfile name
    [-u<oldflags>]                # force infile flags
    [-a]           # automatically renames outfiles using to the -i file
    <infile>
Here is a description of the command flags:

Examples:

  1. On VMS:

    f2f -DAIX,UNIX -jflib_aix:flib.dictincl,ulib_aix:ulib.dictincl paw_fopi.for
    creates an output file paw_fopi.f, which can be ftp'd to AIX and be compiled there.
  2. On AIX:
    f2f -DVMS_DEC,ONLINE -j$FLIBVMS/flib.dictincl,$ULIBVMS/ulib.dictincl -r paw_fopi.f

    creates an output file paw_fopi.for, which can be ftp'd back to VMS and be compiled there.


next up previous contents
Next: FORTRAN Portability Guidelines Up: pawfopi Previous: Porting

Back to GSI Home Page Back to FOPI Home Page Index

fopi
Tue May 28 15:33:35 CST 1996