fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CHANGE INTRINSIC

Syntax:

CHANGE INTRINSIC <intrinsic> TO <intrinsic>
DO NOT CHANGE INTRINSICS

Function:

The intrinsic specified is systematically replaced. The replacement affects only the name of the intrinsic function. The arguments are not changed.

This command is used, for example, to rename the intrinsic statements used in code for old Encore (Gould-SEL) systems, where the trigonometric functions are in degrees and not radians.

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 No

Default

Intrinsics not changed by default (Note that defaults may be changed in the configuration file).

Examples

In an FSP file, for porting from an Encore 32-77 with intrinsics in degrees of arc:

%change intrinsic sin to sind %change intrinsic cos to cosd %change itrinsic tan to tand %change intrinsic atan to atand

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