02.07.2014 Views

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Intel</strong>® <strong>Fortran</strong> <strong>Compiler</strong> <strong>for</strong> <strong>Linux*</strong> <strong>Systems</strong> <strong>User's</strong> <strong>Guide</strong>, <strong>Volume</strong> I: Building<br />

Applications<br />

FORT_CONVERT.dat, FORT_CONVERT_dat, or F_UFMTENDIAN indicates native<br />

little endian data <strong>for</strong> unit 20.)<br />

OPEN (CONVERT='VAXD', FILE='graph3.dat', FORM='UNFORMATTED', UNIT=15<br />

.<br />

OPEN (FILE='graph3_t.dat', FORM='UNFORMATTED', UNIT=20)<br />

A hard-coded OPEN statement CONVERT keyword value cannot be changed<br />

after compile time. However, to allow selection of a particular <strong>for</strong>mat at run time,<br />

equate the CONVERT keyword to a variable and provide the user with a menu<br />

that allows selection of the appropriate <strong>for</strong>mat (menu choice sets the variable)<br />

be<strong>for</strong>e the OPEN occurs.<br />

You can also select a particular <strong>for</strong>mat at run time <strong>for</strong> a unit number by using one<br />

of the environment variable methods (FORT_CONVERTn,<br />

FORT_CONVERT.ext, FORT_CONVERT_ext, or F_UFMTENDIAN), which take<br />

precedence over the OPEN statement CONVERT keyword method.<br />

OPTIONS Statement Method<br />

You can only specify one numeric file <strong>for</strong>mat <strong>for</strong> all un<strong>for</strong>matted file unit numbers<br />

using this method unless you also use one of the environment variable methods<br />

or OPEN statement CONVERT keyword method.<br />

You specify the numeric <strong>for</strong>mat at compile time and must compile all routines<br />

under the same OPTIONS statement CONVERT keyword qualifier. You could<br />

use one source program and compile it using different i<strong>for</strong>t commands to<br />

create multiple executable programs that each read a certain <strong>for</strong>mat.<br />

The environment variable methods and the OPEN statement CONVERT method<br />

take precedence over this method. For instance, you might use the environment<br />

variable FORT_CONVERTn method or OPEN statement CONVERT method to<br />

specify each unit number that will use a <strong>for</strong>mat other than that specified using the<br />

i<strong>for</strong>t option method.<br />

This method takes precedence over the convert keyword compiler option<br />

method.<br />

You can use OPTIONS statements to specify the appropriate floating-point<br />

<strong>for</strong>mats (in memory and in un<strong>for</strong>matted files) instead of using the corresponding<br />

i<strong>for</strong>t command qualifiers. For example, to use VAX F_floating and G_floating as<br />

the un<strong>for</strong>matted file <strong>for</strong>mat, specify the following OPTIONS statement:<br />

133

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

Saved successfully!

Ooh no, something went wrong!