fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
ADD TO PRIMARY INPUT SEARCH PATH
ADD TO PRIMARY [INPUT] [SEARCH] PATH [:] <string>
The command PRIMARY INPUT SEARCH PATH specifies a sequence of directories which are to be searched in turn for primary files (Primary files are files which are not referenced in INCLUDE statements). The command ADD TO PRIMARY INPUT SEARCH PATH is used to append additional directories to the current path.
The directory specifications may be written as quoted strings, and this is recommended when the names are case sensitive or contain spaces.
If the list of directories extends over two or more lines the command continuation character must be used, as in the example below.
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 primary search path specifications.
The command PRIMARY INPUT DIRECTORY specifies a single 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||No|
By default, files are sought in the current directory (Note that defaults may be changed in the configuration file).
The FSP file shown below was used to set up a working directory in which files could be modified. fpt gathers the files required to build the model into a single build directory. The files in the work area automatically supersede those in the baselined directories.
! HELI.FSP 22-May-96 John Collins % assign J:\baseline\products products: % include search path - "D:\john\work" - "products:heli\include" - "products:simlib\include % primary search path - "D:\john\work" - "products:heli\controls" - "products:heli\totf" - "products:heli\outputs" ! Main vehicle files mrotor.for trotor.for body.for uc.for deck.for gusts.for % add to primary search path: "products:simlib" ! Simulation library bound.for integinit.for integ.for fcng1.for fcng2.for coord.for % output directory ..\build ! End of heli.fsp
INCLUDE INPUT DIRECTORY
INCLUDE INPUT SEARCH PATH
PRIMARY INPUT DIRECTORY
Copyright ©1995 to 2019 Software Validation Ltd. All rights reserved.