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.

INTEGER variable is 4 bytes. With the -Mnoi4 option, the default size of an INTEGER variable is2 bytes.Note: The data type of a symbol may be explicitly declared only once. It is established by typedeclaration statement, IMPLICIT statement or by predefined typing rules. Explicit declaration of atype overrides any implicit declaration. An IMPLICIT statement overrides predefined typing rules.ExampleINTEGER TIME, SECOND, STORE (5,5)INTENT 90The INTENT specification statement (attribute) specifies intended use of a dummy argument. Thisstatement (attribute) may not be used in a main program's specification statement.SyntaxINTENT (intent-spec) [ :: ] dummy-arg-listintent-specINOUTINOUTdummy-arg-listis one of:is the list of dummy arguments with the specified intent.DescriptionWith intent specified as IN, the subprogram argument must not be redefined by the subprogram.With intent specified as OUT, the subprogram should use the argument to pass information to thecalling program.With intent specified as INOUT, the subprogram may use the value passed through the argument,but should also redefine the argument to pass information to the calling program.See AlsoOPTIONALExampleSUBROUTINE IN_OUT(R1,I1)REAL, INTENT (IN)::R1Fortran Statements 105

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

Saved successfully!

Ooh no, something went wrong!