Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

INQUIRE: PENDING Specifier

The PENDING specifier asks whether previously pending asynchronous data transfers are complete. A data transfer is previously pending if it is not complete at the beginning of execution of the INQUIRE statement. It takes the following form:

PENDING = pnd

pnd

Is a scalar default logical variable that is assigned the value .TRUE. or .FALSE..

The value is assigned as follows:

  • If an ID specifier appears in the INQUIRE statement, the following occurs:

    • If the data transfer specified by ID is complete, then variable pnd is set to .FALSE. and INQUIRE performs the WAIT operation for the specified data transfer.

    • If the data transfer specified by ID is not complete, then variable pnd is set to .TRUE. and no WAIT operation is performed. The previously pending data transfer remains pending after the execution of the INQUIRE statement.

  • If an ID specifier does not appear in the INQUIRE statement, the following occurs:

    • If all previously pending data transfers for the specified unit are complete, then variable pnd is set to .FALSE. and the INQUIRE statement performs WAIT operations for all previously pending data transfers for the specified unit.

    • If there are data transfers for the specified unit that are not complete, then variable pnd is set to .TRUE. and no WAIT operations are performed. The previously pending data transfers remain pending after the execution of the INQUIRE statement.