Ignore:
Timestamp:
Oct 17, 2013, 4:19:26 PM (11 years ago)
Author:
tnavarro
Message:

Better handling of the first date of the file : Read and write the controle field, if possible, for zrecast, localtime and concatnc + cosmetic change in lslin. This is retrocompatible with previous versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/util/lslin.F90

    r410 r1073  
    1010! Modified by Ehouarn Millour 10/2007 (changed evaluation of 'start_var'
    1111! from hard-coded values to a computed value)
     12! Read controle field, if available TN, October 2013
     13
    1214
    1315implicit none
     
    109111read(*,'(a50)') infile
    110112
    111 write(*,*) "Is it a concatnc file? (y/n)?"
     113!write(*,*) "Is it a concatnc file? (y/n)?"
     114write(*,*) "Do you want to specify the beginning day of the file"
     115write(*,*) "in case the controle field is not present ? (y/n)?"
    112116read(*,*) answer
    113117if ((answer=="y").or.(answer=="Y")) then
    114    write(*,*) "Beginning day of the concatnc file?"
     118   write(*,*) "Beginning day of the file?"
    115119   read(*,*) reptime
    116120!   start_var=8 ! 'concatnc' type of file
     
    311315   endif
    312316
    313    day_ini = tab_cntrl(4)                                                     
     317   day_ini = tab_cntrl(4)                                               
     318   day_ini = modulo(day_ini,669)                                                   
    314319   write(*,*) 'day_ini', day_ini
    315320else
Note: See TracChangeset for help on using the changeset viewer.