9 Intrinsic Procedures

Intrinsic procedures are functions and subroutines that are included in the Fortran 90 library. There are four classes of these intrinsic procedures, as follows:

Intrinsic procedures are invoked the same way as other procedures, and follow the same rules of argument association.

The intrinsic procedures have generic (or common) names, and many of the intrinsic functions have specific names. (Some intrinsic functions are both generic and specific.)

In general, generic functions accept arguments of more than one data type; the data type of the result is the same as that of the arguments in the function reference. For elemental functions with more than one argument, all arguments must be of the same type (except for the function MERGE).

When an intrinsic function is passed as an actual argument to a procedure, its specific name must be used, and when called, its arguments must be scalar. Not all specific intrinsic functions are allowed as actual arguments in all circumstances. Table 9-1 lists specific functions that cannot be passed as actual arguments.

Table 9-1 Functions Not Allowed as Actual Arguments

AIMAX0  EOF   JIDINT  LOC 
AIMIN0  FLOAT  JIFIX  MALLOC 
AJMAX0  FLOATI   JINT   MAX0 
AJMIN0  FLOATJ   JMAX0  MAX1 
AKMAX0  FLOATK   JMAX1  MIN0 
AKMIN0  ICHAR  JMIN0  MIN1 
AMAX0  IDINT  JMIN1  MULT_HIGH 
AMAX1  IFIX  KIDINT  NUMBER_OF_PROCESSORS 
AMIN0  IIDINT  KIFIX   NWORKERS 
AMIN1  IIFIX  KINT   PROCESSORS_SHAPE 
CHAR  IINT   KIQINT   QEXT 
DBLE  IMAX0   KIQNNT   QEXTD 
DBLEQ  IMAX1   KMAX0  QMAX1 
DFLOTI  IMIN0   KMAX1  QMIN1 
DFLOTJ  IMIN1   KMIN0   RAN 
DFLOTK  INT  KMIN1  REAL 
DMAX1  INT1  LGE  SECNDS  
DMIN1  INT2   LGT  SIZEOF 
DPROD  INT4  LLE  SNGL 
DREAL   JFIX  LLT  SNGLQ 

This chapter contains information on the following topics:

For More Information:


Previous Page Next Page Table of Contents