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.

Note: The data type of a symbol may be explicitly declared only once. It is established by typedeclaration statement, IMPLICIT statement or by predefined typing rules. Explicit declaration of atype overrides any implicit declaration. An IMPLICIT statement overrides predefined typing rules.ExamplesCHARACTER A*4, B*6, CCHARACTER (LEN=10):: NAMEA is 4 and B is 6 characters long and C is 1 character long. NAME is 10 characters long.CLOSE 77The CLOSE statement terminates the connection of the specified file to a unit.SyntaxCLOSE ([UNIT=] u [,ERR= errs ] [,DISP[OSE]= sta][,IOSTAT=ios] [,STATUS= sta] )uerrsis the external unit specifier where u is an integer.is an error specifier in the form of a statement label of an executablestatement in the same program unit. If an error condition occurs,execution continues with the statement specified by errs.ios is an integer scalar; if this is included ios becomes defined with 0(zero) if no error condition exists or a positive integer when there is anerror condition. A value of -1 indicates an end-of-file condition with noerror. A value of -2 indicates an end-of-record condition with no errorwhen using non-advancing I/O.stais a character expression, where case is insignificant, specifying the filestatus and the same keywords are used for the dispose status. Status canbe 'KEEP' or 'DELETE' (the quotes are required). KEEP cannot bespecified for a file whose dispose status is SCRATCH. When KEEP isspecified (for a file that exists) the file continues to exist after theCLOSE statement; conversely DELETE <strong>del</strong>etes the file after theCLOSE statement. The default value is KEEP unless the file status isSCRATCH.64 Chapter 3

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

Saved successfully!

Ooh no, something went wrong!