fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

DEFAULT SIZE

Syntax:

DEFAULT { LOGICAL | INTEGER | REAL | DOUBLE | COMPLEX } SIZE [:] <integer>

Function:

Specifies the default data size for logical, integer, real, double precision or complex objects. The default size is used when no explicit data size declaration has been made.

These commands are made on the command line or in specification files. They cannot be made after fpt has read and analysed the input code.

If it is not otherwise specified, the default logical size is assumed to be the same as the integer size, and the default double precision size is assumed to be twice the real size.

Data sizes may be changed systematically throughout a program by the commands CHANGE LOGICAL SIZE : n, CHANGE INTEGER SIZE : n etc.

The code may be modified to specify the default data sizes explicitly by the command SPECIFY NUMERIC SIZES.

The *n size specifications may be stripped from the code by the command REMOVE NUMERIC SIZES.

The size specifications may ne changed to KIND specifications by the command CHANGE DATA 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

Defaults:

DEFAULT LOGICAL SIZE : 4

DEFAULT INTEGER SIZE : 4

DEFAULT REAL SIZE : 4

DEFAULT DOUBLE SIZE : 8

DEFAULT COMPLEX SIZE : 8

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

See Also

CHANGE SIZE

REMOVE NUMERIC SIZES

SPECIFY NUMERIC SIZES

CHANGE DATA SIZES TO KINDS

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