fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

BUILD NAMELIST TO CHECK/IGNORE DEFAULT SIZES

Syntax:

BUILD NAMELIST TO CHECK DEFAULT SIZES
BUILD NAMELIST TO IGNORE DEFAULT SIZES

Function:

The command BUILD NAMELIST FOR COMMON BLOCKS instructs fpt to generate a NAMELIST which contains all of the variables in COMMON blocks in the entire program. The NAMELIST may then be used to initialise the program or to control it at run-time.

By default, fpt recognises that variables with explicit data size declarations, and variables where the data size is inferred from the system defaults are potentially different, even when the sizes and all other attributes are actually the same. This arises, for example, where a variable is declared REAL*4 THETA in one sub-program and REAL THETA in another. Separate NAMELIST entries are therefore generated for such variables. NAMELIST generation may be instructed to recognise the difference or to ignore the defaulting of data sizes by the commands BUILD NAMELIST TO CHECK DEFAULT SIZES and BUILD NAMELIST TO IGNORE DEFAULT SIZES.

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

BUILD NAMELIST TO CHECK DEFAULT SIZES

Example:

In an FSP file:

%build namelist to ignore default sizes %build namelist as a single statement %build namelist for common blocks %move common blocks to a single INCLUDE file

See Also

BUILD NAMELIST AS A SINGLE STATEMENT

BUILD NAMELIST AS MULTIPLE STATEMENTS

BUILD NAMELIST FOR COMMON BLOCKS

COMMON BLOCK NAMELIST NAME

MOVE COMMON BLOCKS TO A SINGLE INCLUDE FILE

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