fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
INPUT [ FILE [ NAME ]] DIRECTORY [:] <file>
Specifies the directory from which a list of files, and the Fortran INCLUDE files referenced by them, are to be read.
THIS COMMAND IS POSITION SENSITIVE. It applies to the files which follow it until a subsequent input directory is specified.
The input directory is inherited by successive levels of INCLUDE files. For example, if aero.f includes bdata.inc and bdata.inc includes rotortab.dat then, by default, rotortab.dat will be sought in the include input file directory specified for aero.f.
The directory name may be enclosed in quotation marks. It may be necessary to use quotation marks when the command is written on the UNIX command line.
The input directory may be specified separately for primary files and for INCLUDE files. The commands are:
PRIMARY INPUT [ FILE [ NAME ]] DIRECTORY [:] <file>
INCLUDE INPUT [ FILE [ NAME ]] DIRECTORY [:] <file>
The command INPUT DIRECTORY is equivalent to PRIMARY INPUT DIRECTORY and INCLUDE INPUT DIRECTORY.
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|
The current working directory.
Command line use, while working in a scratch directory
C:\JON\FPT\TST\> fpt "/input directory:..\fpt214\src\" fptm2.fsp
Code from an fsp file specifying different parts of a simulation from different directory structures.
! VTL103.FSP - combined engine and control model %INPUT DIRECTORY '/usr/john/vtl103/eng/' eng103 feed fan1 fan2 %INPUT DIRECTORY '/usr/vtl103/baseline/cntrl/' cockpit claw1 claw2 throttle ! end of VTL103.FSP
INCLUDE INPUT DIRECTORY
PRIMARY INPUT DIRECTORY
Copyright ©1995 to 2022 Software Validation Ltd. All rights reserved.