fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

KEEP OUTPUT DIRECTORIES

Syntax:

[DO NOT] KEEP [ OUTPUT ] DIRECTORIES

Function:

Instructs fpt to write the Fortran output files to the same directories as the corresponding input files. fpt changes the output file name extensions, so name collisions may be avoided between the input and output files. If collisions occur, the behaviour is controlled by the command [ DO NOT ] OVERWRITE EXISTING FILES.

fpt may generate new Fortran files which have no direct correspondence to specific input files. These are written to the current working directory, or to the directory specified by an OUTPUT DIRECTORY, PRIMARY OUTPUT DIRECTORY or INCLUDE OUTPUT DIRECTORY command.

This command may be used in combination with the EDIT OUTPUT FILE NAMES command to preserve a directory structure for the output files, but to move them to a different base directory. Please see keeping the directory structure for a more detailed description. For example, in an fsp file:

! heli.fsp %input directory: "/home/john/vt3/pre_fpt/aero" kinetics.f90 aerotab.f90 rotor.f90 trotor.f90 %input directory: "/home/john/vt3/pre_fpt/control" pal.f90 cyclic.f90 collective.f90 switches.f90 %keep output directories %edit output file names: replace "pre_fpt" by "post_fpt"

The output files will be written to the directories:

/home/john/vt3/post_fpt/aero

/home/john/vt3/post_fpt/control

The listing (fpl) file and temporary files used in processing are always written to the current working 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 Yes
Interactive command files Yes
Embedded in the Fortran code Yes

Default

DO NOT KEEP OUTPUT DIRECTORIES

See Also

OUTPUT DIRECTORY

OVERWRITE EXISTING FILES

EDIT OUTPUT FILE NAMES

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