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.

COMPLEX*16CHARACTERIf the function is of character data type, all entry names must also have the same lengthspecification as that of the function.ExampleFUNCTION SUM(TALL,SHORT,TINY).SUM=TALL-(SHORT+TINY)RETURNENTRY SUM1(X,LONG,TALL,WIDE,NARROW)..SUM1=(X*LONG)+(TALL*WIDE)+NARROWRETURNENTRY SUM2(SHORT,SMALL,TALL,WIDE)..SUM2=(TALL-SMALL)+(WIDE-SHORT)RETURNENDWhen the calling program calls the function SUM it can do so in one of three ways depending onwhich ENTRY point is desired.For example if the call is:Z=SUM2(LITTLE,SMALL,BIG,HUGE)the ENTRY point is SUM2.If the call is:Z=SUM(T,X,Y)the ENTRY point is SUM and so on.Fortran Statements 87

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

Saved successfully!

Ooh no, something went wrong!