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.

ExamplesFUNCTION FRED(A,B,C)REAL X.ENDFUNCTION EMPTY()END! Note parenthesesPROGRAM FUNCALL.SIDE=TOTAL(A,B,C).ENDFUNCTION TOTAL(X,Y,Z).ENDFUNCTION AORB(A,B)IF(A-B)1,2,31 AORB = ARETURN2 AORB = BRETURN3 AORB = A + BRETURNENDSee AlsoPURE, RECURSIVE, RESULTGOTO (Assigned)(Obsolescent) The assigned GOTO statement transfers control so that the statement identified bythe statement label is executed next. Internal procedures can be used in place of the ASSIGNstatement used with an assigned GO TO.SyntaxGOTO integer-variable-name[[,] (list)]integer-variable-namemust be defined with the value of a statement label of an executableFortran Statements 95

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

Saved successfully!

Ooh no, something went wrong!