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.

La directive INCLUDE 184<br />

10.1 – La directive INCLUDE<br />

Elle demande au compilateur d’inclure un fichier<br />

contenant des instructions Fortran :<br />

INCLUDE ’nom de fichier’<br />

Exemple<br />

PROGRAM inclusion<br />

IMPLICIT NONE<br />

INTEGER :: i<br />

INCLUDE ’inclusion.inc’<br />

DO i=1,6<br />

itab(i) = PI<br />

END DO<br />

ltab(1) = .true.<br />

ltab(2) = .false.<br />

ltab(3) = .true.<br />

CALL sub<br />

END PROGRAM inclusion<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!