02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

COMMON<br />

! common declaration for program unit 1<br />

INTEGER i, j, k<br />

COMMON /my_block/ i, j, k<br />

! common declaration for program unit 2<br />

INTEGER n(3)<br />

COMMON /my_block/ n(3)<br />

The variables i, j, andk in program unit 1 share the same storage with the array n in<br />

program unit 2: i in program unit 1 matches up with n(1) in program unit 2, j with n(2),<br />

and k with n(3).<br />

Related statements<br />

EQUIVALENCE<br />

Related concepts<br />

For information about data alignment, see Table 3-1 and “Alignment of derived-type objects”<br />

on page 45.<br />

270<br />

Chapter 10

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

Saved successfully!

Ooh no, something went wrong!