FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INTRINSIC

Syntax:

%[NON-]INTRINSIC [:] <symbol> { <symbol> ... }

Function:

Determines whether or not the named intrinsic functions are to be recognised by FPT. The implications of recognising an intrinsic function are:

  1. Recognised intrinsics are evaluated in static expressions, and are used to determine the values of Fortran parameters. Unrecognised intrinsics are not.

  2. Recognised intrinsics do not require a data type declaration.

  3. Recognised intrinsics are controlled by the case specified by the UPPER CASE INTRINSICS and LOWER CASE INTERINSICS commands. Unrecognised intrinsics are controlled by the UPPER CASE SYMBOLS and LOWER CASE SYMBOLS commands.

  4. FPT reports an error if an intrinsic function name is used for a user-defined symbol. Errors are reported only if the intrinsic name belongs to the recognised set.

The named intrinsics must be known to FPT. FPT is able to recognise all Fortran 90 and Fortran 77 intrinsics, and the additional intrinsics supported by DEC (Now Compaq) VMS, Lahey, Salford, Gould-SEL (Now Encore) Concept Fortran and many other vendors.

The command ACCEPT INTRINSICS controls recognition of sets of intrinsic functions.

Where to use this command:

Operating system command line

Yes


Configuration file, config.fsp

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

No


Interactive command files

No


Embedded in the Fortran code

Yes


Default:

All intrinsic functions known to FPT are recognised by default (Note that defaults may be changed in the configuration file).

Example:

In an FSP file:

% accept Fortran 77 intrinsics only
! Allow the degree forms of trig functions.
% intrinsic sind cosd tand

See Also:

ACCEPT INTRINSICS


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