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.

M=2ELSE IF (I.LT.16) THENM=3END IFELSE WHERE 90The WHERE statement and the WHERE ELSE 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 WHEREExamplesINTEGER SCORE(30)CHARACTER GRADE(30)WHERE ( SCORE > 60 ) GRADE = 'P'WHERE ( SCORE > 60 )GRADE = 'P'ELSE WHEREGRADE = 'F'END WHEREENCODE § 77The ENCODE statement transfers data between variables or arrays in internal storage andtranslates that data from internal to character form, according to format specifiers. Similar resultscan be accomplished using internal files with formatted sequential WRITE statements.SyntaxENCODE (c,f,b[,IOSTAT=ios] [,ERR=errs])[list]Fortran Statements 81

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

Saved successfully!

Ooh no, something went wrong!