9 Intrinsic Procedures

Intrinsic procedures are functions and subroutines that are included in the Fortran 95/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. Some specific intrinsic functions are not 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   JIFIX  MAX1 
AIMIN0  FLOAT  JINT   MIN0 
AJMAX0  FLOATI   JMAX0  MIN1 
AJMIN0  FLOATJ   JMAX1  MULT_HIGH 
AKMAX0  FLOATK   JMIN0  NUMBER_OF_PROCESSORS 
AKMIN0  ICHAR  JMIN1  NWORKERS 
AMAX0  IDINT  KIDINT  PROCESSORS_SHAPE 
AMAX1  IFIX  KIFIX   QCMPLX 
AMIN0  IIDINT  KINT   QEXT 
AMIN1  IIFIX  KIQINT   QEXTD 
CHAR  IINT   KIQNNT   QMAX1 
CMPLX  IMAX0   KMAX0  QMIN1 
DBLE  IMAX1   KMAX1  QREAL 
DBLEQ  IMIN0   KMIN0   RAN 
DCMPLX  IMIN1   KMIN1  REAL 
DFLOTI  INT  LGE  SECNDS  
DFLOTJ  INT1  LGT  SIZEOF 
DFLOTK  INT2   LLE  SNGL 
DMAX1  INT4  LLT  SNGLQ 
DMIN1  INT8  LOC   
DPROD  JFIX  MALLOC   
DREAL   JIDINT  MAX0   

This chapter contains information on the following topics:

For More Information:


Previous Page Next Page Table of Contents