12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

INCLUDE "MYFILE.DEF"Recursive includes are not allowed. That is, if a file includes a file, that file may not also includethe same file.Nested includes are allowed, up to a <strong>PGI</strong> Fortran defined limit of 20.1.6 The Components of Fortran StatementsFortran program units are made up of statements which consist of expressions and elements. Anexpression can be broken down to simpler expressions and eventually to its elements combinedwith operators. Hence the basic building block of a statement is an element. An element takes oneof the following forms:• A constant represents a fixed value.• A variable represents a value which may change during program execution.• An array is a group of values that can be referred to as a whole, as a section, orseparately. The separate values are known as the elements of the array. The array has asymbolic name.• A function reference or subroutine reference is the name of a function or subroutinefollowed by an argument list. The reference causes the code specified atfunction/subroutine definition to be executed and if a function, the result is substituted forthe function reference.1.6.1 Symbolic NamesSymbolic names identify different entities in Fortran source code. A symbolic name is a string ofletters and digits, which must start with a letter and be terminated by a character not in thesymbolic names set (for example a or a character). Underscore (_) charactersmay appear within symbolic names. Only the first thirty-one characters identify the symbolicname. Below are several examples of symbolic names:NUMCRA9numericabcdefghijklmnopqrstuvwxyzThe last example is identified by its first 31 characters and is equivalent to:numericabcdefghijklmnopqrstuvwxLanguage Overview 19

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

Saved successfully!

Ooh no, something went wrong!