FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INPUT CODE LAYOUT

Syntax:

INPUT [CODE] LAYOUT [:] FIXED FORMAT

INPUT [CODE] LAYOUT [:] FORTRAN 77

INPUT [CODE] LAYOUT [:] FORTRAN 77 EXTENDED SOURCE

INPUT [CODE] LAYOUT [:] FREE FORMAT

INPUT [CODE] LAYOUT [:] FORTRAN 90


INPUT [CODE] FORMAT ... (as INPUT CODE LAYOUT)


FREE FORMAT INPUT

FIXED FORMAT INPUT

FIXED FORMAT INPUT EXTENDED SOURCE

[NO] EXTENDED SOURCE

[INFER] INPUT CODE LAYOUT FROM [FILE] [NAME] EXTENSION

Function:

Specifies the layout of the input code.

FIXED FORMAT INPUT or INPUT CODE LAYOUT: FORTRAN 77 specifies code written in fixed or tab format. The label field is 6 columns wide, or ends with a tab character which is written in or before column 5. The code occupies the columns after the label field to column 72. Text beyond column 72 is considered to be commentary. Tabs are counted as 1 column wide in determining the position of the trailing comment field. There may therefore be up to 71 characters in the code field, and this is an extension to the FORTRAN 77 standard and conforms with VMS and with other systems which support tab format.

FIXED FORMAT INPUT EXTENDED SOURCE or INPUT CODE LAYOUT: FORTRAN 77 EXTENDED SOURCE specifies code written in 132 columns in which the label field is 6 columns wide, or ends with a tab character. There is no trailing comment field.

FREE FORMAT INPUT or INPUT CODE LAYOUT: FORTRAN 90 specifies free format code written in 132 columns in which there is no reserved label field and no trailing comment field.

INFER INPUT CODE LAYOUT FROM FILE NAME EXTENSION specifies that the format is inferred from the file name extension of the primary files. If the extension is .f90 (in upper or lower case) the input code is expected to be in free format. If it is not, the code is expected to be in 72 column fixed format.

These commands are position sensitive. They apply to the files which follow it until a subsequent input code layout is specified.

The input code layout is inherited by successive levels of INCLUDE files. If aero.f includes bdata.inc, and bdata.inc includes rotab.dat then rotab.dat will be expected to have the layout specified for aero.f.

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:

INPUT CODE LAYOUT FROM FILE NAME EXTENSION

See also:

TRUNCATE INPUT LINES


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