FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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 SIZESand 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

BUILD NAMELIST FOR COMMON BLOCKS

COMMON BLOCK NAMELIST NAME

MOVE COMMON BLOCKS TO A SINGLE INCLUDE FILE


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