FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INCLUDE INPUT DIRECTORY

Syntax:

INCLUDE [INPUT] [FILE] DIRECTORY [:] <filename>

Function:

Specifies the default directory from which INCLUDE files are read when the INCLUDE statement does not contain a directory specification or when IGNORE DIRECTORIES IN INCLUDE STATEMENTS has been specified.

This command is position sensitive in the command line or specification file in which it is written. It applies to the files which follow it, and a list of Fortran files may contain several different INCLUDE file directory specifications.

The default INCLUDE file directory is inherited by nested INCLUDE files. Thus, for example, when the command is made (to a VMS system):

$ fpt %include_input_file_directory:[john.ilib] aero

if aero.for contains the INCLUDE statement:

INCLUDE 'AEROTAB.INC'

and AEROTAB.INC in turn contains the statement:

INCLUDE 'WIND.INC'

then WIND.INC and AEROTAB.INC will both be read from [JOHN.ILIB].

The command INPUT DIRECTORY specifies the default input directory for both primary and INCLUDE files. The command PRIMARY INPUT DIRECTORY specifies the input directory for primary files. The command INCLUDE INPUT SEARCH PATH specifies a sequence of directories which will be searched in turn for INCLUDE files.

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:

The current directory (Note that defaults may be changed in the configuration file).

Example:

! WSYM.FSP - for aerodynamic sim with wind
%include input directory: [JOHN.ILIB]
AERO.FOR
STAB.FOR
%include input directory: [JOHN.CNTRL]
GYRO.FOR
ACCEL.FOR
! end of WSYM.FSP

See also:

INCLUDE INPUT SEARCH PATH

INPUT DIRECTORY

PRIMARY INPUT DIRECTORY


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