FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


The fpt and WinFPT Configuration File:  config.fsp


The configuration file, config.fsp is used to set up site or user-specific defaults. config.fsp resides in the main FPT directory, for example, for fpt version 3.8, by default under Windows: "C:\Program Files\SimCon\FPT\", typically, under Linux or Unix: /usr/local/fpt/ and FPTMAIN: under VMS.

The file config.fsp contains:

  1. A reference to the file user.fsp which contains the LICENSEE and KEY commands.

  2. A reference to a formatting file. This contains a detailed specification of the format of the Fortran code output by FPT. The format is usually set up interactively and saved to an FSP file by the SAVE FORMAT command. The formatting FSP file is invoked from the configuration file to set up a default format which may be overridden for a specific project.

  3. FPT commands to set up site or user-specific characteristics, such as the maximum length of file names and the default input and output file name extensions. For example:

    	% maximum base file name length = 100
    	% primary input file name extension : ".f"
    	% include input file name extension : ".inc"
    	

Example

! *****************************************************************************
! CONFIG.FSP - Configuration file
! Commands written to this file will be executed before input is read from
! the user's terminal.  Ensure that the file protection allows read access.
! *****************************************************************************
! Licensing Information
! ---------------------
FPTMAIN:user.fsp
 
! *****************************************************************************
! Site-specific commands
! -----------------------
! Some suggested commands are shown but are commented out
 
! Allow '/' to introduce commands on the operating system command line
% ACCEPT COMMAND CHARACTER '/'
 
! Code Format - choose one of these, or construct your own
FPTMAIN:compact.fsp
!!!FPTMAIN:spaced.fsp
% COLUMN FORMAT
 
! File name characteristics
%INPUT FILE NAME EXTENSION: '.for'
%LOWER CASE FILE NAMES
!!! %INCLUDE INPUT FILE NAME EXTENSION: '.inc'
!!! %MAXIMUM BASE FILE NAME LENGTH = 8
!!! %NO WARNINGS FOR NON-PRINTING CHARACTERS
 
! Interactive characteristics
%NUMBER LINES
%WINDOW 9
 
%DEFINE FPTTEST: J:\fpt\fpttest
%DEFINE FPTTESTS: J:\fpt\fpttests
 
! End of CONFIG.FSP
! *****************************************************************************


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