Changeset 605
- Timestamp:
- Mar 21, 2005, 5:11:34 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/trunk/IPCC/ts2IPCC.F90
r572 r605 88 88 endif 89 89 90 do while (iostat == 0)90 config: do 91 91 READ(20,'(A)',iostat=iostat)line_read 92 line_read = trim(line_read) 92 IF (iostat /= 0) exit 93 line_read = TRIM(line_read) 93 94 IF (INDEX(line_read, '#') /= 1) THEN 94 95 first_part = trim(line_read(1:INDEX(line_read, '=')-1)) … … 125 126 end select 126 127 endif 127 enddo 128 enddo config 128 129 if (iostat > 0) then 129 130 WRITE(lunout,*)'Probleme de lecture du fichier config.def, iostat = ',iostat … … 140 141 endif 141 142 indice = 0 142 do while (iostat == 0)143 table: do 143 144 READ(20,'(A)',iostat=iostat)line_read 144 line_read = trim(line_read) 145 IF (iostat /= 0) exit 146 line_read = TRIM(line_read) 145 147 IF (INDEX(line_read, '#') /= 1) THEN 146 148 indice = indice + 1 … … 154 156 ipcc_table(indice) = trim(line_read(INDEX(line_read, '|')+1:)) 155 157 endif 156 enddo 158 enddo table 157 159 indice = indice - 1 158 160 close(20)
Note: See TracChangeset
for help on using the changeset viewer.