02.05.2014 Views

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

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.

Initialisation 85<br />

6.3 – Initialisation<br />

6.3.1 – Le symbole ”=”<br />

Fortran permet de manipuler globalement l’ensemble<br />

des éléments d’un tableau.<br />

On pourra alors utiliser le symbole ”=” comme pour<br />

l’initialisation d’une variable scalaire.<br />

Exemple<br />

Pour initialiser à 3 l’ensemble d’un vecteur :<br />

REAL, DIMENSION(100) :: X = 3.<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!