Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceSyntaxCALL PXFFDOPEN (ifildes, iunit, access, ierror)ifildes(Input) INTEGER(4). The file descriptor of the opened file.iunit(Input) INTEGER(4). The Fortran logical unit to connect to file descriptor ifildes.access(Input) Character. A character string that specifies the attributes for the Fortran unit. The stringmust consist of one or more of the following keyword/value pairs. Keyword/value pairs should beseparated by a comma, and blanks are ignored.Keyword Possible Values Description Default'NEWLINE' 'YES' or 'NO' I/O type 'YES''BLANK' 'NULL' or 'ZERO' Interpretation of blanks 'NULL''STATUS' 'OLD', 'SCRATCH', or 'UNKNOWN' File status at open 'UNKNOWN''FORM' 'FORMATTED' or 'UNFORMATTED' Format type 'FORMATTED'Keywords should be separated from their values by the equals ('=') character; for example:call PXFDOPEN (IFILDES, IUNIT, 'BLANK=NULL, STATUS=UNKNOWN', IERROR)ierror(Output) INTEGER(4). The error status.The PXFFDOPEN subroutine connects an external unit identified by iunit to a file descriptorifildes. If the unit is already connected to a file, the file should be closed before usingPXFFDOPEN.NOTE. On Windows* systems, the default value of the POSIX/IO flag is 0,which causes PXFFDOPEN to return an error.To prevent this, call subroutine PXFPOSIXIO and set the value of thePOSIX/IO flag to 1.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB2-286

Descriptions of the Library Routines 2PXFFFLUSHPOSIX Subroutine: Flushes a file directly to disk.Module: USE IFPOSIXSyntaxCALL PXFFFLUSH (lunit, ierror)lunit(Input) INTEGER(4). A Fortran logical unit.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFFFLUSH subroutine writes any buffered output to the file connected to unit lunit.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBPXFFGETCPOSIX Subroutine: Reads a character from a file.Module: USE IFPOSIXSyntaxCALL PXFFGETC (lunit, char, ierror)lunit(Input) INTEGER(4). A Fortran logical unit.char(Input) Character. The character to be read.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFFGETC subroutine reads a character from a file connected to unit lunit.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “PXFFPUTC”2-287

Descriptions of the Library Routines 2PXFFFLUSHPOSIX Subroutine: Flushes a file directly to disk.Module: USE IFPOSIXSyntaxCALL PXFFFLUSH (lunit, ierror)lunit(Input) INTEGER(4). A <strong>Fortran</strong> logical unit.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFFFLUSH subroutine writes any buffered output to the file connected to unit lunit.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBPXFFGETCPOSIX Subroutine: Reads a character from a file.Module: USE IFPOSIXSyntaxCALL PXFFGETC (lunit, char, ierror)lunit(Input) INTEGER(4). A <strong>Fortran</strong> logical unit.char(Input) Character. The character to be read.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFFGETC subroutine reads a character from a file connected to unit lunit.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “PXFFPUTC”2-287

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

Saved successfully!

Ooh no, something went wrong!