Changeset 605


Ignore:
Timestamp:
Mar 21, 2005, 5:11:34 PM (20 years ago)
Author:
Laurent Fairhead
Message:

Un probleme sur la boucle de lecture du fichier de correspondance
variable IPSL - variable IPCC empechait l'execution sur PC
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/trunk/IPCC/ts2IPCC.F90

    r572 r605  
    8888  endif
    8989
    90   do while (iostat == 0)
     90  config: do
    9191    READ(20,'(A)',iostat=iostat)line_read
    92     line_read = trim(line_read)
     92    IF (iostat /= 0) exit
     93    line_read = TRIM(line_read)
    9394    IF (INDEX(line_read, '#') /= 1) THEN
    9495      first_part = trim(line_read(1:INDEX(line_read, '=')-1))
     
    125126      end select
    126127    endif
    127   enddo
     128  enddo config
    128129  if (iostat > 0) then
    129130    WRITE(lunout,*)'Probleme de lecture du fichier config.def, iostat = ',iostat
     
    140141  endif
    141142  indice = 0
    142   do while (iostat == 0)
     143  table: do
    143144    READ(20,'(A)',iostat=iostat)line_read
    144     line_read = trim(line_read)
     145    IF (iostat /= 0) exit
     146    line_read = TRIM(line_read)
    145147    IF (INDEX(line_read, '#') /= 1) THEN
    146148      indice = indice + 1
     
    154156      ipcc_table(indice) = trim(line_read(INDEX(line_read, '|')+1:))
    155157    endif
    156   enddo
     158  enddo table
    157159  indice = indice - 1
    158160  close(20)
Note: See TracChangeset for help on using the changeset viewer.