FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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).

Example:

The user makes the interactive command:

FPT> ch 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 2014 Software Validation Ltd. All rights reserved.