FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


ACCEPT COMMANDS IN THE CODE

Syntax:

ACCEPT COMMANDS [EMBEDDED] IN [THE] CODE

ACCEPT DIRECTIVES [EMBEDDED] IN [THE] CODE

IGNORE COMMANDS [EMBEDDED] IN [THE] CODE

IGNORE DIRECTIVES [EMBEDDED] IN [THE] CODE


Function:

Commands to FPT may be written within comments in the Fortran code. They are introduced by a comment delimiter in column 1 immediately followed by the character % in column 2. For example:

! Expand call to CHSORT in-line !% INLINE CALL CHSORT(NAMLIS,STAB,IE) IF (IE .NE. 0) GOTO 9010

The command ACCEPT COMMANDS IN THE CODE instructs FPT to process these commands. The command IGNORE COMMANDS IN THE CODE instructs FPT to ignore them. They are then transcribed as if they were ordinary comments and may be processed by FPT on subsequent passes.

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

Yes


Default:

ACCEPT COMMANDS IN THE CODE

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

Example:

On the command line: inline expansion and loop unwinding are suppressed because FPT is invoked on this occasion only to check the usage of names.

$ fpt %ignore_commands_in_the_code aero.fsp %check_names


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