10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

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.

<strong>Fortran</strong> Statementscis an integer expression specifying the number of bytes involved in translation.fis the format-specifier.bis a scalar or array reference for the buffer area containing formatted data (characters).iosis an integer scalar memory reference which is the input/output status specifier: if this isspecified ios becomes defined with zero if no error condition exists or a positive integer whenthere is an error condition.errsan error specifier which takes the form of a statement label of an executable statement inthe same program unit. If an error condition occurs execution continues with the statementspecified by errs.listis a list of input items.Non-character Format-specifierIf a format-specifier is a variable which is neither CHARACTER nor a simple INTEGERvariable, the compiler accepts it and treats it as if the contents were character. In the followingexample, sum is treated as a format descriptor:real sumsum = 4h()accept sum<strong>The</strong> preceding code segment is roughly equivalent to this:character*4 chch = '()'accept chSee AlsoREAD, PRINT,3.7. DOUBLE COMPLEX<strong>The</strong> DOUBLE COMPLEX statement establishes the data type of a variable by explicitlyattaching the name of a variable to a double complex data type. This overrides the data typingimplied by the initial letter of a symbolic name.F77 extension<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 46

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

Saved successfully!

Ooh no, something went wrong!