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.

A=(P+Q)*(T/V)B=R**T**21.9.2 Logical Assignment StatementThe logical assignment statement has the following form:object = logical-expressionwhere object is one of the following:• Variable• Function name (only within the body of the function)• Subroutine argument• Array element• A field of a structureThe type of object must be logical.In the following example, FLAG takes the logical value .TRUE. if P+Q is greater than R; otherwiseFLAG has the logical value .FALSE.FLAG=(P+Q) .GT. R1.9.3 Character AssignmentThe form of a character assignment is:object = character expressionwhere object is one of the following:• Variable• Function name (only within the body of the function)• Subroutine argument• Array element• Character substring• A field of a structureAbove, object must be of type character.None of the character positions being defined in object can be referenced in the characterexpression and only such characters as are necessary for the assignment to object need to beLanguage Overview 27

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

Saved successfully!

Ooh no, something went wrong!