02.05.2014 Views

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Common étiqueté 175<br />

9.3 – Common étiqueté<br />

Un COMMON est dit étiqueté lorsque nom common est<br />

précisé entre caractères /.<br />

Ses particularités sont :<br />

☞ il peut être initialisé par l’intermédiaire d’une unité de<br />

programme de type BLOCK DATA,<br />

☞ un bloc COMMON défini dans le programme principal<br />

reçoit implicitement l’attribut SAVE. S’il ne l’est pas,<br />

l’attribut SAVE est nécessaire si on désire le rendre<br />

permanent.<br />

Exemples<br />

INTEGER, DIMENSION(6) :: itab<br />

REAL, DIMENSION(12) :: rtab<br />

COMMON /TAB/itab, rtab<br />

INSTITUT DU DÉVELOPPEMENT<br />

ET DES RESSOURCES<br />

EN INFORMATIQUE SCIENTIFIQUE<br />

Cours langage Fortran – 27 janvier 2006<br />

<strong>Patrick</strong> <strong>Corde</strong> et <strong>Anne</strong> <strong>Fouilloux</strong>

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

Saved successfully!

Ooh no, something went wrong!