06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Specification Statements 5<br />

INTENT(INOUT) :: A, B<br />

...<br />

SUBROUTINE CHANGE(FROM, TO)<br />

USE EMPLOYEE_MODULE<br />

TYPE(EMPLOYEE) FROM, TO<br />

INTENT(IN) FROM<br />

INTENT(OUT) TO<br />

...<br />

See Also<br />

• “Type Declaration Statements”<br />

• “Argument Association”<br />

• Table 5-1 for details on compatible attributes<br />

INTRINSIC Attribute and Statement<br />

The INTRINSIC attribute allows the specific name of an intrinsic procedure to be used as an<br />

actual argument. (Not all specific names can be used as actual arguments. For more information,<br />

see Table 9-1.)<br />

The INTRINSIC attribute can be specified in a type declaration statement or an INTRINSIC<br />

statement, and takes one of the following forms:<br />

Type Declaration Statement:<br />

type, [att-ls,] INTRINSIC [, att-ls] [::] in-pro [, in-pro]...<br />

Statement:<br />

INTRINSIC in-pro [, in-pro]...<br />

type<br />

Is a data type specifier.<br />

att-ls<br />

Is an optional list of attribute specifiers.<br />

in-pro<br />

Is the name of an intrinsic procedure.<br />

Rules and Behavior<br />

In a type declaration statement, only functions can be declared INTRINSIC. However, you can use<br />

the INTRINSIC statement to declare subroutines, as well as functions, to be intrinsic.<br />

5-43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!