fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CHECK DATA IN COMMON BLOCKS

Syntax:

[DO NOT] CHECK DATA [INITIALISATION] IN COMMON [BLOCKS] [DO NOT] CHECK DATA [INITIALIZATION] IN COMMON [BLOCKS]

Function:

fpt checks:

A common source of this problem is embedded data in derived TYPE or STRUCTURE declarations. Fields of structures, for example, may be initialised by '/' delimited data written after the field names. The data initialise all records of the structure. Any record which is placed in a COMMON block and which is declared in two or more sub-programs then causes multiple data initialisation of the COMMON block. The command CHECK DATA IN STRUCTURES reports embedded data in structures which are used for records in COMMON blocks.

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

The check is not carried out by default (Note that defaults may be changed in the configuration file).

Examples

The user makes the interactive command:

FPT> check data in common

fpt reports:

Data Initialisation of COMMON Blocks ==================================== COMMON /TERRAIN/ initialised in: -------------------------------- PROGRAM EW3 SUBROUTINE EWINI ------------------------------------------------------------------------------- WARNING Number 2847 Severity 1 (Worst 1) Count 4 One or more COMMON blocks is initialised by DATA in two or more sub-programs ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- WARNING Number 2849 Severity 1 (Worst 1) Count 5 One or more COMMON blocks is initialised by DATA or embeddded DATA outside BLOCK DATA -------------------------------------------------------------------------------

See Also

CHECK DATA IN STRUCTURES

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