02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

END INTERFACE<br />

Terminates a procedure interface block.<br />

Syntax<br />

END INTERFACE<br />

Description<br />

<strong>HP</strong> <strong>Fortran</strong> statements<br />

END INTERFACE<br />

In <strong>Fortran</strong> 90, external procedures may be given explicit interfaces by means of procedure<br />

interface blocks. Such a block is always terminated by the END INTERFACE statement.<br />

Examples<br />

The following makes the interface of function r_ave explicit, giving it the generic name<br />

g_ave.<br />

INTERFACE g_ave<br />

FUNCTION r_ave(x)<br />

! get the size of array x from module ave_stuff<br />

USE ave_stuff, ONLY: n<br />

REAL r_ave, x(n)<br />

END FUNCTION r_ave<br />

END INTERFACE<br />

Related statements<br />

INTERFACE<br />

Related concepts<br />

Interface blocks are described in “Interface blocks” on page 150.<br />

Chapter 10 311

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

Saved successfully!

Ooh no, something went wrong!