25.06.2013 Views

Il Linguaggio Fortran 90/95

Il Linguaggio Fortran 90/95

Il Linguaggio Fortran 90/95

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

3.10.1 Input e output degli elementi di un array . . . . . . . . . . . . . . . . . . 159<br />

3.10.2 Input e output con interi array o con sezioni di array . . . . . . . . . . . 160<br />

3.11 Array come componenti di tipi di dati derivati . . . . . . . . . . . . . . . . . . . 162<br />

3.12 Array di elementi di un tipo di dati derivati . . . . . . . . . . . . . . . . . . . . 163<br />

3.13 Costrutto e istruzione WHERE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165<br />

3.14 Costrutto e istruzione FORALL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168<br />

3.15 Gestione di array di grandi dimensioni . . . . . . . . . . . . . . . . . . . . . . . 170<br />

4 Operazioni di I/O interattive 175<br />

4.1 Generalità . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175<br />

4.2 Istruzioni di lettura e scrittura . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176<br />

4.3 Specificazioni di formato . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179<br />

4.3.1 Rappresentazione dei dati numerici sui record di I/O . . . . . . . . . . . 181<br />

4.3.2 Interazione fra lista di ingresso/uscita e specificazione di formati . . . . . 182<br />

4.4 Descrittori ripetibili . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183<br />

4.4.1 <strong>Il</strong> descrittore I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183<br />

4.4.2 I descrittori B, O e Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185<br />

4.4.3 <strong>Il</strong> descrittore F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186<br />

4.4.4 <strong>Il</strong> descrittore E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188<br />

4.4.5 Nota sui descrittori reali . . . . . . . . . . . . . . . . . . . . . . . . . . . 189<br />

4.4.6 <strong>Il</strong> descrittore ES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1<strong>90</strong><br />

4.4.7 <strong>Il</strong> descrittore EN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191<br />

4.4.8 <strong>Il</strong> descrittore L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191<br />

4.4.9 <strong>Il</strong> descrittore A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192<br />

4.4.10 <strong>Il</strong> descrittore G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193<br />

4.5 Descrittori non ripetibili . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194<br />

4.5.1 <strong>Il</strong> descrittore nX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194<br />

4.5.2 I descrittori ’h1...hn’ e h1...hn . . . . . . . . . . . . . . . . . . . . . . 1<strong>95</strong><br />

4.5.3 <strong>Il</strong> descrittore : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1<strong>95</strong><br />

4.5.4 <strong>Il</strong> descrittore / . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196<br />

4.5.5 I descrittori Tn , TRn e TLn . . . . . . . . . . . . . . . . . . . . . . . . . 197<br />

4.6 Alcune considerazioni sulle istruzioni di I/O formattate . . . . . . . . . . . . . . 198<br />

4.6.1 Corrispondenza fra la lista di I/O e la lista di FORMAT . . . . . . . . . . . 198<br />

4.6.2 Lista di I/O più corta della lista di descrittori di formato . . . . . . . . 199<br />

4.6.3 Lista di I/O più lunga della lista di descrittori di formato . . . . . . . . 199<br />

4.6.4 Sovrapposizione fra campi di input ed interpretazione dei blank . . . . . 202<br />

4.6.5 Formato con ampiezza di campo minima . . . . . . . . . . . . . . . . . . 203<br />

4.7 Istruzioni di I/O guidate da lista . . . . . . . . . . . . . . . . . . . . . . . . . . 203<br />

4.7.1 Istruzione di input guidate da lista . . . . . . . . . . . . . . . . . . . . . 203<br />

4.7.2 Istruzione di output guidate da lista . . . . . . . . . . . . . . . . . . . . 205<br />

4.8 Caratteri di controllo per la stampante . . . . . . . . . . . . . . . . . . . . . . . 206<br />

4.9 Istruzioni di I/O con meccanismo namelist . . . . . . . . . . . . . . . . . . . . . 208<br />

4.10 Non-advancing I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

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

Saved successfully!

Ooh no, something went wrong!