Intel® Fortran Compiler 16.0 User and Reference Guide

FLUSH Subroutine

Portability Subroutine: Flushes the contents of an external unit buffer into its associated file.

Module

USE IFPORT

CALL FLUSH (lunit)

lunit

(Input) INTEGER(4). Number of the external unit to be flushed. Must be currently connected to a file when the subroutine is called. This routine is thread-safe, and locks the associated stream before I/O is performed.

Note

The flush is performed in a non-blocking mode. In this mode, the command may return before the physical write is completed. If you want to use a blocking mode of FLUSH use COMMITQQ.

See Also