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.

See AlsoALLOCATABLE, POINTERTHEN 77The THEN statement is part of a block IF statement and surrounds a series of statements that areconditionally executed.SyntaxIF logical expression THENstatementsELSE IF logical expression THENstatementsELSEstatementsENDIFThe ELSE IF section is optional and may be repeated any number of times. Other IF blocks maybe nested within the statements section of an IF block.ExampleIF (I.GT.70) THENM=1ELSE IF (I.LT.5) THENM=2ELSE IF (I.LT.16) THENM=3ENDIFIF (I.LT.15) THENM = 4ELSEM=5ENDIFTYPE 77The TYPE statement begins a derived type data specification or declares variables of a specifieduser-defined type.Syntax Type DeclarationTYPE (type-name) [ , attribute-list :: ] entity-listFortran Statements 137

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

Saved successfully!

Ooh no, something went wrong!