FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


CHANGE PARAMETER STATEMENTS TO STANDARD FORM

Syntax:

CHANGE PARAMETER STATEMENTS [TO] [STANDARD] [FORM[AT]]

PARAMETER STATEMENTS AS WRITTEN

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

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 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)

FORTRAN IV PARAMETER statements are accepted by VMS Fortran and by some other systems.

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

Yes


Default:

PARAMETER STATEMENTS AS WRITTEN

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


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