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.

SyntaxPROGRAM [name]...END [ PROGRAM [program-name]]nameis optional; if supplied it becomes the name of the program module andmust not clash with any other names used in the program. If it is notsupplied, a default name is used.DescriptionThe program statement specifies the entry point for the linked Fortran program. An ENDstatement terminates the program.The END PROGRAM statement terminates a main program unit that begins with the optionalPROGRAM statement. The program name found in the END PROGRAM must match that in thePROGRAM statement.ExamplePROGRAM MYOWNREAL MEAN, TOTAL.CALL TRIG(A,B,C,MEAN).ENDPUBLIC 90The PUBLIC statement specifies entities defined in a module are accessible outside of the module.This statement is only valid in a module. The default specification for a module is PUBLIC.SyntaxPUBLIC [ :: [ access-id-list ]]ExampleMODULE FORMULAPRIVATEPUBLIC :: VARA..Fortran Statements 123

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

Saved successfully!

Ooh no, something went wrong!