FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


TRUNCATE NAMES

Syntax:

TRUNCATE NAMES AFTER [:] <integer> [CHARACTERS]

DO NOT TRUNCATE NAMES

Function:

This command specifies the number of characters which are significant when identifying a name. Some Fortran systems, most importantly Encore (Gould-SEL) Fortran for the Concept series machines, allow long names but ignore trailing characters when the names are identified. Concept Fortran uses only the first 8 characters to identify a name. Thus the names:

ANGLE_ATTACK

ANGLE_ATT

ANGLE_AT

written in the same scope all represent the same variable on a Concept machine. In most environments they would represent three different variables.

If TRUNCATE NAMES AFTER 8 CHARACTERS is specified, FPT uses only the first 8 characters to identify the name. When the name has been identified, all occurrences in the code are changed to match the first spelling encountered. Thus, for example, if ANGLE_ATT is encountered first, ANGLE_ATTACK and ANGLE_AT are systematically changed to ANGLE_ATT.

This command must be made before analysing the Fortran code, because it affects the way in which Fortran variables are identified.

The command SHOW NAMES LONGER THAN <integer> CHARACTERS may be used to identify names which will be truncated.

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


Default:

DO NOT TRUNCATE NAMES

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

See also:

SHOW NAMES LONGER THAN ...


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