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.

IF (B.EQ.5) EXITEND DOSee AlsoEXIT, DODATA 77The DATA statement assigns initial values to variables before execution.SyntaxDATA vlist/dlist/[[, ]vlist/dlist/]...vlistis a list of variable names, array element names or array namesseparated by commas.dlistis a list of constants or PARAMETER constants, separated by commas,corresponding to elements in the vlist. An array name in the vlistdemands that dlist constants be supplied to fill every element of thearray.Repetition of a constant is provided by using the form:n*constant-valuena positive integer, is the repetition count.ExampleREAL A, B, C(3), D(2)DATA A, B, C(1), D /1.0, 2.0, 3.0, 2*4.0/This performs the following initialization:A = 1.0B = 2.0C(1) = 3.0D(1) = 4.0D(2) = 4.0Fortran Statements 71

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

Saved successfully!

Ooh no, something went wrong!