FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


COMPARE SUB-PROGRAMS

Syntax:

COMPARE SUB-PROGRAMS <symbol> <symbol>

Function:

This command is used interactively to compare different sub-programs.

FPT compares the named sub-programs. The sub-program names may be enclosed in quotation marks, and are required to be enclosed in quotation marks if they contain exotic characters such as ':' (Please see the command ACCEPT CHARACTER).

When the sub-programs are compared, FPT reports whether the:

Where to use this command:

Operating system command line

No


Configuration file, config.fsp

No


Specification (FSP) files, *.fsp

No


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

No


Example:

FPT> comp sub-p indata getdata
 
Comparing sub-programs
----------------------
INDATA    line: 28   file:
   D:\JOHN\FPT\FPTTEST\INDATA.FOR
GETDATA    line: 33   file:
   D:\JOHN\FPT\FPTTEST\GETDATA.FOR
 
   Sub-programs differ:
 
****** INDATA     line: 3
	DO WHILE (I .LT. NDATA)
****** GETDATA     line: 2
	I=1
******
 
FPT>
FPT> comp sub-prog simplx simplex
 
Comparing sub-programs
----------------------
SIMPLX    line: 7   file:
   D:\JOHN\FPT\FPTTEST\SIMPLX.FOR
SIMPLEX    line: 12   file:
   G:\OPTIM\SOURCE\SIMPLEX.FOR
 
Headers         differ  ***
Comments        match
Declarations    match
Names           match
DATA statements match
Executable code is functionally identical
 

See Also:

COMPARE VERSIONS

ACCEPT CHARACTER


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