fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

REPEATED

Syntax:

!% REPEATED [:] [:] <symbol>

Function:

Specifies that the named sub-program argument may be repeated an indeterminate number of times. It may be applied only to the last argument in the argument list. fpt uses this information in the argument consistency check (please see CHECK ARGUMENTS).

Names which contain exotic characters such as '%', ':' or '#' (which are all legal on some systems) must be written as quoted strings.

The REPEATED command must be written in code within the scope of declaration of the variable.

Where to Use this Command

Operating system command line No
Configuration file, config.fsp No
Specification (fsp) files, *.fsp No
Interactively, to FPT> prompt No
Interactive command files No
Embedded in the Fortran code Yes

Default

Arguments are not repeated by default.

Examples

SUBROUTINE plotlines(npts,linea) INTEGER*4 npts ! Number points REAL*4 linea(npts) ! Data to plot !% REPEATED :: linea

See Also

CHECK ARGUMENTS

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