FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


CHANGE DO UNTIL TO DO WHILE

Syntax:

[DO NOT] CHANGE DO [-] UNTIL TO DO WHILE

Function:

Systematically changes DO UNTIL constructs to DO WHILE constructs.

DO UNTIL is supported under Encore (Gould-SEL) Concept-32 Fortran.

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 - UNTIL constructs are not changed by default (Note that defaults may be modified in the configuration file).

Example:

$ fpt heli %change_do_until_to_do_while

results in modification of:

DO UNTIL (A(I) .EQ. -9999) SS(I) = SS(I) + A(I)*A(I) I=I+1 ENDDO

to:

! DO UNTIL(A(I) .EQ. -9999) !---------------^--------------------------------------------- !!! FPT - 2253 'DO UNTIL' replaced by 'DO WHILE' !------------------------------------------------------------- DO WHILE (.NOT. (A(I) .EQ. -9999)) SS(I)=A(I)*A(I) I=I+1 ENDDO


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