fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
CHANGE DOUBLE PRECISION TO REAL
CHANGE DOUBLE [PRECISION] [TO] REAL [*<integer>]
Systematically changes DOUBLE PRECISION declarations to REAL declarations, with the specified size, or of the current DOUBLE PRECISION size if no size is specified. IMPLICIT statements and data type statements are modified throughout the program.
The new data type and size is used to compute the addresses of objects in COMMON blocks and of fields in records which are used by the name and argument checks and in the symbol and COMMON block listings (See CHECK NAMES, CHECK ARGUMENTS, SYMBOL LISTING and COMMON BLOCK LISTING).
The command CHANGE REAL TO DOUBLE PRECISION changes REAL declarations to DOUBLE PRECISION declarations systematically throughout a program.
Note that declarations of the form REAL*8 are not standard Fortran. To change the size specifications to standard-conforming KIND specifications, use the command CHANGE SIZES TO KINDS.
Where to Use this Command
|Operating system command line||Yes|
|Configuration file, config.fsp||Yes|
|Specification (fsp) files, *.fsp||Yes|
|Interactively, to FPT> prompt||No|
|Interactive command files||No|
|Embedded in the Fortran code||No|
Declarations are not changed by default (Note that defaults may be changed in the configuration file).
On the operating system command-line:
$ fpt heli "%change double precision to real*8"
CHANGE REAL TO DOUBLE PRECISION
CHANGE SIZES TO KINDS
COMMON BLOCK LISTING
Copyright ©1995 to 2018 Software Validation Ltd. All rights reserved.