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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SyntaxVOLATILE nitem [, nitem ...]nitemis the name of a variable, an array, or a common block enclosed inslashes.DescriptionIf nitem names a common block, all members of the block are volatile. The volatile attribute of avariable is inherited by any direct or indirect equivalences, as shown in the example.ExampleCOMMON /COM/ C1, C2VOLATILE /COM/, DIREQUIVALENCE (DIR, X)EQUIVALENCE (X, Y)! /COM/ and DIR are volatile! X is volatile! Y is volatileWHERE 90The WHERE statement and the WHERE END WHERE construct permit masked assignments tothe elements of an array (or to a scalar, zero dimensional array).SyntaxWHERE StatementWHERE (logical-array-expr) array-variable = array-exprWHERE ConstructWHERE (logical-array-expr)array-assignments[ELSE WHEREarray-assignments ]END WHEREDescriptionThis construct allows for conditional assignment to an array based on the result of a logical arrayexpression. The logical array expression and the array assignments must involve arrays of thesame shape.Fortran Statements 141

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

Saved successfully!

Ooh no, something went wrong!