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.

2 <strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

Table 2-1 shows other statements restricted from different types of scoping units.<br />

Table 2-1<br />

Statements Restricted in Scoping Units<br />

Scoping Unit<br />

Main program<br />

Module 1<br />

Block data program unit<br />

Internal subprogram<br />

Interface body<br />

Restricted Statements<br />

ENTRY and RETURN statements<br />

ENTRY, FORMAT, OPTIONAL, and INTENT statements,<br />

statement functions, and executable statements<br />

CONTAINS, ENTRY, and FORMAT statements, interface<br />

blocks, statement functions, and executable statements<br />

CONTAINS and ENTRY statements<br />

CONTAINS, DATA, ENTRY, SAVE, and FORMAT<br />

statements, statement functions, and executable<br />

statements<br />

1. The scoping unit of a module does not include any module subprograms that the module contains.<br />

See Also<br />

“Scope” for details on scoping units<br />

Names<br />

Names identify entities within a <strong>Fortran</strong> program unit (such as variables, function results, common<br />

blocks, named constants, procedures, program units, namelist groups, and dummy arguments). In<br />

FORTRAN 77, names were called "symbolic names".<br />

A name can contain letters, digits, underscores ( _ ), and the dollar sign ($) special character. The<br />

first character must be a letter or a dollar sign.<br />

In <strong>Fortran</strong> 95/90, a name can contain up to 31 characters. <strong>Intel</strong>® <strong>Fortran</strong> allows names up to 63<br />

characters.<br />

The length of a module name (in MODULE and USE statements) may be restricted by your file<br />

system.<br />

NOTE. Be careful when defining names that contain dollar signs. On Linux*<br />

and Windows* systems, a dollar sign can be a symbol for command or symbol<br />

substitution in various shell and utility commands.<br />

In an executable program, the names of the following entities are global and must be unique in the<br />

entire program:<br />

2-4

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

Saved successfully!

Ooh no, something went wrong!