fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CHANGE PARAMETER STATEMENTS TO STANDARD FORM

Syntax:

[DO NOT] CHANGE PARAMETER STATEMENTS [TO] [STANDARD] [FORM[AT]]
PARAMETER STATEMENTS AS WRITTEN

Function:

The command CHANGE PARAMETER STATEMENTS TO STANDARD FORM instructs fpt to convert FORTRAN IV PARAMETER statements to standard Fortran 77 format. FORTRAN IV PARAMETER statements are accepted by VMS Fortran and by some other systems. They statements are written without parentheses, and the data types of the parameters are inferred from the objects which they represent. Thus, for example, in the statement:

PARAMETER KAPPA=0.6416

the data type of KAPPA is inferred to be single precision REAL, even if KAPPA is not declared elsewhere and would have an implicit data type of INTEGER. The PARAMETER statement is converted to read:

REAL*4 KAPPA PARAMETER (KAPPA=0.6416)

Note that the Fortran 77 declaration style is retained so that the code may be compiled on the original host system.

The command PARAMETER STATEMENTS AS WRITTEN instructs fpt to transcribe the PARAMETER statements without modification.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code No

Default

PARAMETER STATEMENTS AS WRITTEN

(Note that defaults may be changed in the configuration file).

Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.